root / branches / Mobile_Compatible_Hito_1 / libProjectionAPI / build.xml @ 26962
History | View | Annotate | Download (2.17 KB)
1 | 21820 | csanchez | <project name="libProjection" default="dist" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Genera el jar con libProjection y sus dependencias |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="lib" location="lib"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | <property name="build" location="bin"/> |
||
10 | <property name="build-test" location="bin-test"/> |
||
11 | <property name="jarName" value="org.gvsig.projection.api.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 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
33 | <mkdir dir="${build}" /> |
||
34 | <loadEclipseClasspath project="${basedir}"/> |
||
35 | <gvSIG-javac
|
||
36 | classpath="${eclipseClasspath}" |
||
37 | />
|
||
38 | <javac srcdir="${src}" |
||
39 | destdir="${build}" |
||
40 | source="${JavaSourceVersion}" |
||
41 | target="${JavaTargetVersion}" |
||
42 | debug="${debug}" |
||
43 | debuglevel="${debuglevel}" |
||
44 | classpath="${compile-classpath}" |
||
45 | encoding="${encoding}"/> |
||
46 | </target>
|
||
47 | |||
48 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
49 | <mkdir dir="${dist}"/> |
||
50 | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
||
51 | <jar jarfile="${dist}/${jarName}" basedir="." includes = "images/*" update="true" /> |
||
52 | </target>
|
||
53 | |||
54 | <target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
||
55 | <copy todir="${lib}"> |
||
56 | <fileset dir="${dist}" includes="*.jar"/> |
||
57 | </copy>
|
||
58 | <move todir="${targetDir}/"> |
||
59 | <fileset dir="${dist}" includes="**/**"/> |
||
60 | </move>
|
||
61 | </target>
|
||
62 | |||
63 | <target name="clean" |
||
64 | description="clean up" > |
||
65 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
66 | <delete dir="${build}"/> |
||
67 | <delete dir="${dist}"/> |
||
68 | </target>
|
||
69 | |||
70 | </project>
|