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