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