root / trunk / libraries / libGPE-KML / build.xml @ 12175
History | View | Annotate | Download (1.73 KB)
1 | 12175 | jorpiell | <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 | 10637 | jorpiell | <property name="lib" location="lib" /> |
7 | 12175 | jorpiell | <property name="kmlJarName" value="org.gvsig.gpe.kml"/> |
8 | <property name="compile-classpath" value="" /> |
||
9 | 10637 | jorpiell | |
10 | 12175 | jorpiell | <target name="init"> |
11 | <!-- Create the time stamp -->
|
||
12 | <tstamp/> |
||
13 | <echo>
|
||
14 | Compiling ${ant.project.name}...</echo>
|
||
15 | </target>
|
||
16 | 10637 | jorpiell | |
17 | 12175 | jorpiell | <target name="batch-build" |
18 | 10637 | jorpiell | description="compile the sources, create the jar file" |
19 | 12175 | jorpiell | depends="init,compile,create-jar"> |
20 | 10637 | jorpiell | </target>
|
21 | |||
22 | <target name="compile" description="compile the source"> |
||
23 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
24 | <mkdir dir="${build}" /> |
||
25 | <javac srcdir="${src}" |
||
26 | destdir="${build}" |
||
27 | source="1.4" |
||
28 | target="1.4" |
||
29 | debug="${debug}" |
||
30 | debuglevel="${debuglevel}" |
||
31 | 12175 | jorpiell | classpath="${compile-classpath}"/> |
32 | <!-- copy any images or resources present in the src dir -->
|
||
33 | <copy todir="${build}"> |
||
34 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
35 | 10637 | jorpiell | </copy>
|
36 | </target>
|
||
37 | |||
38 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
39 | 12175 | jorpiell | <mkdir dir="${targetDir}" /> |
40 | <jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/kml/**"/> |
||
41 | <jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="." includes="build.number" update="true"/> |
||
42 | <move todir="${lib}"> |
||
43 | <fileset dir="${targetDir}" includes="*.jar" /> |
||
44 | </move>
|
||
45 | <delete dir="${targetDir}"/> |
||
46 | 10637 | jorpiell | </target>
|
47 | |||
48 | <target name="clean" description="clean up"> |
||
49 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
50 | <delete dir="${build}" /> |
||
51 | 12175 | jorpiell | <delete dir="${targetDir}" /> |
52 | 10637 | jorpiell | </target>
|
53 | 12175 | jorpiell | |
54 | 10637 | jorpiell | </project> |