svn-gvsig-desktop / tags / v1_9_Build_1242 / libraries / libGPE / build.xml @ 46123
History | View | Annotate | Download (2.92 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 | 27161 | jmvivo | <property name="resources" location="../resources/jars" /> |
9 | 18288 | jpiera | <property name="gpeJarName" value="org.gvsig.gpe"/> |
10 | 27161 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
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 | 27161 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
28 | <gvSIG-javac
|
||
29 | classpath="${eclipseClasspath}" |
||
30 | />
|
||
31 | 18288 | jpiera | </target>
|
32 | |||
33 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
34 | <mkdir dir="${targetDir}" /> |
||
35 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/**"/> |
||
36 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
37 | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="org/gvsig/xmlschema/**"/> |
||
38 | 20176 | jpiera | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="javax/xml/namespace/**" update="true"/> |
39 | 18288 | jpiera | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="." includes="build.number" update="true"/> |
40 | <move todir="${gpeLibs}"> |
||
41 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
42 | 27161 | jmvivo | </move>
|
43 | 18288 | jpiera | <delete dir="${targetDir}"/> |
44 | </target>
|
||
45 | 27161 | jmvivo | |
46 | 18770 | csanchez | <target name="create-mobile-jar" description="Crea el jar de la aplicacion"> |
47 | <mkdir dir="${targetDir}" /> |
||
48 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/**"/> |
||
49 | <jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
50 | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="org/gvsig/xmlschema/**"/> |
||
51 | <jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
52 | <move todir="${gpeLibs}"> |
||
53 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
54 | 27161 | jmvivo | </move>
|
55 | 18770 | csanchez | <copy todir="${resources}/libGPE" file="${gpeLibs}/org.gvsig.gpe.jar"/> |
56 | <copy todir="${resources}/libGPE" file="${gpeLibs}/org.gvsig.xmlschema.jar"/> |
||
57 | <delete dir="${targetDir}"/> |
||
58 | </target>
|
||
59 | 27161 | jmvivo | |
60 | 18288 | jpiera | <target name="clean" description="clean up"> |
61 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
62 | <delete dir="${build}" /> |
||
63 | <delete dir="${targetDir}" /> |
||
64 | </target>
|
||
65 | 27161 | jmvivo | |
66 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
67 | <!-- <antcall target="generic-run-tests">
|
||
68 | <param name="TestSuite.Name" value="com.iver.utiles.AllTests"/>
|
||
69 | </antcall> -->
|
||
70 | </target>
|
||
71 | 18288 | jpiera | </project> |