svn-gvsig-desktop / tags / v1_11_0_Build_1303 / libraries / libGPE-XML / build.xml
History | View | Annotate | Download (2.33 KB)
1 |
<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="resources" location="../resources/jars" /> |
8 |
<property name="xmlJarName" value="org.gvsig.gpe.xml"/> |
9 |
<import file="../binaries/ant/utilities.xml"/> |
10 |
|
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 |
<loadEclipseClasspath project="${basedir}"/> |
27 |
<gvSIG-javac
|
28 |
classpath="${eclipseClasspath}" |
29 |
/>
|
30 |
</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 |
</move>
|
39 |
<delete dir="${targetDir}"/> |
40 |
</target>
|
41 |
|
42 |
<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 |
</move>
|
49 |
<copy todir="${resources}/libGPE" file="${lib}/org.gvsig.gpe.xml.jar"/> |
50 |
<delete dir="${targetDir}"/> |
51 |
</target>
|
52 |
|
53 |
<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 |
|
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 |
</project>
|