svn-gvsig-desktop / tags / v2_0_Build_1216 / libraries / libGPE / build.xml @ 25381
History | View | Annotate | Download (2.96 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="gpeLibs" location="lib" /> |
7 |
<property name="schemaJarName" value="org.gvsig.xmlschema"/> |
8 |
<property name="resources" location="../resources/jars" /> |
9 |
<property name="gpeJarName" value="org.gvsig.gpe"/> |
10 |
<property name="compile-classpath" value="" /> |
11 |
|
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 |
<javac srcdir="${src}" |
28 |
destdir="${build}" |
29 |
source="1.4" |
30 |
target="1.4" |
31 |
debug="${debug}" |
32 |
debuglevel="${debuglevel}" |
33 |
classpath="${compile-classpath}"/> |
34 |
<!-- copy any images or resources present in the src dir -->
|
35 |
<copy todir="${build}"> |
36 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
37 |
</copy>
|
38 |
</target>
|
39 |
|
40 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
41 |
<mkdir dir="${targetDir}" /> |
42 |
<jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/**"/> |
43 |
<jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="." includes="build.number" update="true"/> |
44 |
<jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="org/gvsig/xmlschema/**"/> |
45 |
<jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="javax/xml/namespace/**" update="true"/> |
46 |
<jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="." includes="build.number" update="true"/> |
47 |
<move todir="${gpeLibs}"> |
48 |
<fileset dir="${targetDir}" includes="*.jar" /> |
49 |
</move>
|
50 |
<delete dir="${targetDir}"/> |
51 |
</target>
|
52 |
|
53 |
<target name="create-mobile-jar" description="Crea el jar de la aplicacion"> |
54 |
<mkdir dir="${targetDir}" /> |
55 |
<jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/**"/> |
56 |
<jar jarfile="${targetDir}/${gpeJarName}.jar" basedir="." includes="build.number" update="true"/> |
57 |
<jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="${build}" includes="org/gvsig/xmlschema/**"/> |
58 |
<jar jarfile="${targetDir}/${schemaJarName}.jar" basedir="." includes="build.number" update="true"/> |
59 |
<move todir="${gpeLibs}"> |
60 |
<fileset dir="${targetDir}" includes="*.jar" /> |
61 |
</move>
|
62 |
<copy todir="${resources}/libGPE" file="${gpeLibs}/org.gvsig.gpe.jar"/> |
63 |
<copy todir="${resources}/libGPE" file="${gpeLibs}/org.gvsig.xmlschema.jar"/> |
64 |
<delete dir="${targetDir}"/> |
65 |
</target>
|
66 |
|
67 |
<target name="clean" description="clean up"> |
68 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
69 |
<delete dir="${build}" /> |
70 |
<delete dir="${targetDir}" /> |
71 |
</target>
|
72 |
|
73 |
</project>
|