svn-gvsig-desktop / tags / v1_10_0_Build_1259 / libraries / libGPE-KML / build.xml @ 42158
History | View | Annotate | Download (1.67 KB)
1 | 18284 | 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="lib" location="lib" /> |
||
7 | <property name="kmlJarName" value="org.gvsig.gpe.kml"/> |
||
8 | 27161 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
9 | 18284 | jpiera | |
10 | <target name="init"> |
||
11 | <!-- Create the time stamp -->
|
||
12 | <tstamp/> |
||
13 | <echo>
|
||
14 | Compiling ${ant.project.name}...</echo>
|
||
15 | </target>
|
||
16 | |||
17 | <target name="batch-build" |
||
18 | description="compile the sources, create the jar file" |
||
19 | depends="init,compile,create-jar"> |
||
20 | </target>
|
||
21 | |||
22 | <target name="compile" description="compile the source"> |
||
23 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
24 | <mkdir dir="${build}" /> |
||
25 | 27161 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
26 | <gvSIG-javac
|
||
27 | classpath="${eclipseClasspath}" |
||
28 | />
|
||
29 | 18284 | jpiera | </target>
|
30 | |||
31 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
32 | <mkdir dir="${targetDir}" /> |
||
33 | 19686 | jpiera | <jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="${build}" includes="**/**"/> |
34 | 18284 | jpiera | <jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="." includes="build.number" update="true"/> |
35 | <move todir="${lib}"> |
||
36 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
37 | 27161 | jmvivo | </move>
|
38 | 18284 | jpiera | <delete dir="${targetDir}"/> |
39 | </target>
|
||
40 | |||
41 | <target name="clean" description="clean up"> |
||
42 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
43 | <delete dir="${build}" /> |
||
44 | <delete dir="${targetDir}" /> |
||
45 | </target>
|
||
46 | 27161 | jmvivo | |
47 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
48 | <!-- <antcall target="generic-run-tests">
|
||
49 | <param name="TestSuite.Name" value="com.iver.utiles.AllTests"/>
|
||
50 | </antcall> -->
|
||
51 | </target>
|
||
52 | 18284 | jpiera | </project> |