svn-gvsig-desktop / tags / v1_1_2_Build_1041 / libraries / libGPE / build.xml @ 41653
History | View | Annotate | Download (2.07 KB)
1 | 18288 | jpiera | <project name="libGPE" default="create-jar" basedir="."> |
---|---|---|---|
2 | <!-- set global properties for this build -->
|
||
3 | <property name="src" location="src"/> |
||
4 | <property name="build" location="bin"/> |
||
5 | <property name="targetDir" location="dist"/> |
||
6 | <property name="gpeLibs" location="lib" /> |
||
7 | <property name="schemaJarName" value="org.gvsig.xmlschema"/> |
||
8 | <property name="gpeJarName" value="org.gvsig.gpe"/> |
||
9 | 18486 | jmvivo | <property name="compile-classpath" value="./lib/gvsig-exceptions.jar" /> |
10 | 18288 | jpiera | |
11 | <target name="init"> |
||
12 | <!-- Create the time stamp -->
|
||
13 | <tstamp/> |
||
14 | <echo>
|
||
15 | Compiling ${ant.project.name}...</echo>
|
||
16 | </target>
|
||
17 | |||
18 | <target name="batch-build" |
||
19 | description="compile the sources, create the jar file" |
||
20 | depends="init,compile,create-jar"> |
||
21 | </target>
|
||
22 | |||
23 | <target name="compile" description="compile the source"> |
||
24 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
25 | <mkdir dir="${build}" /> |
||
26 | 18486 | jmvivo | <javac srcdir="${src}" |
27 | destdir="${build}" |
||
28 | source="${JavaSourceVersion}" |
||
29 | target="${JavaTargetVersion}" |
||
30 | debug="${debug}" |
||
31 | debuglevel="${debuglevel}" |
||
32 | classpath="${compile-classpath}" |
||
33 | encoding="${encoding}"/> |
||
34 | 18288 | jpiera | <!-- copy any images or resources present in the src dir -->
|
35 | <copy todir="${build}"> |
||
36 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
37 | </copy>
|
||
38 | </target>
|
||
39 | |||
40 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
41 | <mkdir dir="${targetDir}" /> |
||
42 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/**"/> |
||
43 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
44 | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="org/gvsig/xmlschema/**"/> |
||
45 | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
46 | <move todir="${gpeLibs}"> |
||
47 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
48 | 18486 | jmvivo | </move>
|
49 | 18288 | jpiera | <delete dir="${targetDir}"/> |
50 | </target>
|
||
51 | |||
52 | <target name="clean" description="clean up"> |
||
53 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
54 | <delete dir="${build}" /> |
||
55 | <delete dir="${targetDir}" /> |
||
56 | </target>
|
||
57 | 18486 | jmvivo | |
58 | 18288 | jpiera | </project> |