svn-gvsig-desktop / tags / v2_0_0_Build_2000 / libraries / libGPE / build.xml @ 46275
History | View | Annotate | Download (2.96 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 | 18770 | csanchez | <property name="resources" location="../resources/jars" /> |
9 | 18288 | jpiera | <property name="gpeJarName" value="org.gvsig.gpe"/> |
10 | 18770 | csanchez | <property name="compile-classpath" value="" /> |
11 | 18288 | jpiera | |
12 | <target name="init"> |
||
13 | <!-- Create the time stamp -->
|
||
14 | <tstamp/> |
||
15 | <echo>
|
||
16 | Compiling ${ant.project.name}...</echo>
|
||
17 | </target>
|
||
18 | |||
19 | <target name="batch-build" |
||
20 | description="compile the sources, create the jar file" |
||
21 | depends="init,compile,create-jar"> |
||
22 | </target>
|
||
23 | |||
24 | <target name="compile" description="compile the source"> |
||
25 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
26 | <mkdir dir="${build}" /> |
||
27 | 18770 | csanchez | <javac srcdir="${src}" |
28 | destdir="${build}" |
||
29 | source="1.4" |
||
30 | target="1.4" |
||
31 | debug="${debug}" |
||
32 | debuglevel="${debuglevel}" |
||
33 | classpath="${compile-classpath}"/> |
||
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 | 20176 | jpiera | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="javax/xml/namespace/**" update="true"/> |
46 | 18288 | jpiera | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="." includes="build.number" update="true"/> |
47 | <move todir="${gpeLibs}"> |
||
48 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
49 | 18770 | csanchez | </move>
|
50 | 18288 | jpiera | <delete dir="${targetDir}"/> |
51 | </target>
|
||
52 | 18770 | csanchez | |
53 | <target name="create-mobile-jar" description="Crea el jar de la aplicacion"> |
||
54 | <mkdir dir="${targetDir}" /> |
||
55 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/**"/> |
||
56 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
57 | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="org/gvsig/xmlschema/**"/> |
||
58 | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
59 | <move todir="${gpeLibs}"> |
||
60 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
61 | </move>
|
||
62 | <copy todir="${resources}/libGPE" file="${gpeLibs}/org.gvsig.gpe.jar"/> |
||
63 | <copy todir="${resources}/libGPE" file="${gpeLibs}/org.gvsig.xmlschema.jar"/> |
||
64 | <delete dir="${targetDir}"/> |
||
65 | </target>
|
||
66 | |||
67 | 18288 | jpiera | <target name="clean" description="clean up"> |
68 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
69 | <delete dir="${build}" /> |
||
70 | <delete dir="${targetDir}" /> |
||
71 | </target>
|
||
72 | 18770 | csanchez | |
73 | 18288 | jpiera | </project> |