svn-gvsig-desktop / tags / v1_12_0_Build_1413 / libraries / libGPE-KML / build.xml @ 40339
History | View | Annotate | Download (1.97 KB)
1 | 38036 | fpuga | <project name="libGPE" default="create-and-deploy-jar" basedir="."> |
---|---|---|---|
2 | 18284 | jpiera | <!-- 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 | 38036 | fpuga | <property name="deployDir" location="../extGPE-gvSIG/lib"/> |
9 | 27161 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
10 | 18284 | 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 | 18284 | jpiera | </target>
|
31 | |||
32 | 38036 | fpuga | <target name="create-and-deploy-jar" |
33 | description="Creates the jar and deploys as lib of extGPE-gvSIG" |
||
34 | depends="create-jar"> |
||
35 | <copy todir="${deployDir}"> |
||
36 | <fileset dir="${lib}" includes="*.jar" /> |
||
37 | </copy>
|
||
38 | </target>
|
||
39 | |||
40 | 18284 | jpiera | <target name="create-jar" description="Crea el jar de la aplicacion"> |
41 | <mkdir dir="${targetDir}" /> |
||
42 | 19686 | jpiera | <jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="${build}" includes="**/**"/> |
43 | 18284 | jpiera | <jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="." includes="build.number" update="true"/> |
44 | <move todir="${lib}"> |
||
45 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
46 | 27161 | jmvivo | </move>
|
47 | 18284 | jpiera | <delete dir="${targetDir}"/> |
48 | </target>
|
||
49 | |||
50 | <target name="clean" description="clean up"> |
||
51 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
52 | <delete dir="${build}" /> |
||
53 | <delete dir="${targetDir}" /> |
||
54 | </target>
|
||
55 | 27161 | jmvivo | |
56 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
57 | <!-- <antcall target="generic-run-tests">
|
||
58 | <param name="TestSuite.Name" value="com.iver.utiles.AllTests"/>
|
||
59 | </antcall> -->
|
||
60 | </target>
|
||
61 | 18284 | jpiera | </project> |