svn-gvsig-desktop / tags / v1_10_0_Build_1264 / libraries / libProjection / build.xml @ 40245
History | View | Annotate | Download (2.82 KB)
1 | 13042 | cesar | <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 | 13450 | cesar | <property name="src-test" location="src-test"/> |
8 | 13042 | cesar | <property name="lib" location="lib"/> |
9 | <property name="build" location="bin"/> |
||
10 | 13450 | cesar | <property name="build-test" location="bin-test"/> |
11 | 13042 | cesar | <property name="dist" location="dist"/> |
12 | 13215 | cesar | <property name="jarName" value="org.cresques.cts.jar"/> |
13 | 13042 | cesar | <property name="targetDir" location="../libFMap/lib"/> |
14 | <property name="cresques.home" value="${build}/org/cresques" /> |
||
15 | <property name="i18n" location="../libInternationalization"/> |
||
16 | 13126 | jmvivo | <property name="i18nLibs" location="${i18n}/lib"/> |
17 | <!--<property name="compile-classpath" value="${lib}/geoapi-2.0.jar:${lib}/geojava.jar:${lib}/gt2-legacy.jar:${lib}/gt2-main.jar:${i18nLibs}/gvsig-i18n.jar" />-->
|
||
18 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
19 | 13042 | cesar | |
20 | <target name="init"> |
||
21 | <tstamp/> |
||
22 | <echo>
|
||
23 | Compiling ${ant.project.name}... |
||
24 | </echo>
|
||
25 | </target>
|
||
26 | |||
27 | <target name="dist" depends="init, create-jar, move-to-fmap" |
||
28 | description="generate the distribution" > |
||
29 | </target>
|
||
30 | |||
31 | <target name="batch-build" |
||
32 | description="compile the sources, create the jar file" |
||
33 | depends="compile,create-jar,move-to-fmap"> |
||
34 | </target>
|
||
35 | 13126 | jmvivo | |
36 | 13042 | cesar | <target name="compile" description="compile the source" > |
37 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
38 | <mkdir dir="${build}" /> |
||
39 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
40 | 13296 | jmvivo | <gvSIG-javac
|
41 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
42 | />
|
||
43 | 13126 | jmvivo | <!--<javac srcdir="${src}"
|
44 | 13042 | cesar | destdir="${build}"
|
45 | source="${JavaSourceVersion}"
|
||
46 | target="${JavaTargetVersion}"
|
||
47 | debug="${debug}"
|
||
48 | debuglevel="${debuglevel}"
|
||
49 | classpath="${compile-classpath}"
|
||
50 | 13126 | jmvivo | encoding="${encoding}"/>-->
|
51 | 13042 | cesar | <copy todir="${cresques.home}/i18n/resources/translations"> |
52 | <fileset dir="config" includes="*" /> |
||
53 | </copy>
|
||
54 | </target>
|
||
55 | 13126 | jmvivo | |
56 | 13042 | cesar | <target name="create-jar" description="Crea el jar de la aplicacion"> |
57 | <mkdir dir="${dist}"/> |
||
58 | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
||
59 | <jar jarfile="${dist}/${jarName}" basedir="." includes = "images/*" update="true" /> |
||
60 | </target>
|
||
61 | 13126 | jmvivo | |
62 | 13042 | cesar | <target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
63 | <copy todir="${dist}"> |
||
64 | <fileset dir="./lib" includes="*.jar"/> |
||
65 | </copy>
|
||
66 | <move todir="${targetDir}/"> |
||
67 | <fileset dir="${dist}" includes="**/**"/> |
||
68 | </move>
|
||
69 | </target>
|
||
70 | |||
71 | <target name="clean" |
||
72 | description="clean up" > |
||
73 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
74 | <delete dir="${build}"/> |
||
75 | <delete dir="${dist}"/> |
||
76 | </target>
|
||
77 | 13450 | cesar | |
78 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
79 | <antcall target="generic-run-tests"> |
||
80 | 13451 | cesar | <param name="TestSuite.Name" value="org.cresques.cts.AllTests"/> |
81 | 13450 | cesar | </antcall>
|
82 | </target>
|
||
83 | |||
84 | 13042 | cesar | </project>
|