svn-gvsig-desktop / tags / v2_0_0_Build_2001 / libraries / libProjection / build.xml @ 43637
History | View | Annotate | Download (2.52 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 | 25144 | jmvivo | <target name="dist" depends="init, create-jar" |
28 | 13042 | cesar | description="generate the distribution" > |
29 | </target>
|
||
30 | |||
31 | <target name="batch-build" |
||
32 | description="compile the sources, create the jar file" |
||
33 | 25144 | jmvivo | depends="compile,create-jar"> |
34 | 13042 | cesar | </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="clean" |
63 | description="clean up" > |
||
64 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
65 | <delete dir="${build}"/> |
||
66 | <delete dir="${dist}"/> |
||
67 | </target>
|
||
68 | 25144 | jmvivo | |
69 | 13450 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
70 | <antcall target="generic-run-tests"> |
||
71 | 13451 | cesar | <param name="TestSuite.Name" value="org.cresques.cts.AllTests"/> |
72 | 13450 | cesar | </antcall>
|
73 | </target>
|
||
74 | |||
75 | 13042 | cesar | </project>
|