svn-gvsig-desktop / branches / Mobile_Compatible_Hito_1 / libProjectionDummy / build.xml @ 34025
History | View | Annotate | Download (1.87 KB)
1 | 21822 | csanchez | <project name="libProjectionDummy" default="dist" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Genera el jar con libProjectionDummy y sus dependencias |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="${basedir}/src"/> |
||
7 | <property name="lib" location="lib"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | <property name="build" location="${basedir}/bin"/> |
||
10 | <property name="build-test" location="bin-test"/> |
||
11 | <property name="jarName" value="org.gvsig.projection.dummy.jar"/> |
||
12 | <property name="targetDir" location="../libFMap/lib"/> |
||
13 | |||
14 | <target name="init"> |
||
15 | <tstamp/> |
||
16 | <echo>
|
||
17 | Compiling ${ant.project.name}... |
||
18 | </echo>
|
||
19 | <mkdir dir="lib"/> |
||
20 | </target>
|
||
21 | |||
22 | <target name="dist" depends="init, create-jar, move-to-fmap" |
||
23 | description="generate the distribution" > |
||
24 | </target>
|
||
25 | |||
26 | <target name="batch-build" |
||
27 | description="compile the sources, create the jar file" |
||
28 | depends="compile,create-jar,move-to-fmap"> |
||
29 | </target>
|
||
30 | |||
31 | <target name="compile" description="compile the source" > |
||
32 | <javac srcdir="${src}" destdir="${build}"/> |
||
33 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
34 | </target>
|
||
35 | |||
36 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
37 | <mkdir dir="${dist}"/> |
||
38 | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
||
39 | <jar jarfile="${dist}/${jarName}" basedir="." includes = "images/*" update="true" /> |
||
40 | </target>
|
||
41 | |||
42 | <target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
||
43 | <copy todir="${lib}"> |
||
44 | <fileset dir="${dist}" includes="*.jar"/> |
||
45 | </copy>
|
||
46 | <move todir="${targetDir}/"> |
||
47 | <fileset dir="${dist}" includes="**/**"/> |
||
48 | </move>
|
||
49 | </target>
|
||
50 | |||
51 | <target name="clean" |
||
52 | description="clean up" > |
||
53 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
54 | <delete dir="${build}"/> |
||
55 | <delete dir="${dist}"/> |
||
56 | </target>
|
||
57 | |||
58 | </project>
|