svn-gvsig-desktop / trunk / libraries / libTopology / build.xml @ 33693
History | View | Annotate | Download (2.98 KB)
1 | 16502 | azabala | <project name="libTopology" default="dist" basedir="."> |
---|---|---|---|
2 | 13821 | azabala | <description>
|
3 | Genera el jar con libTopology y sus dependencias |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="src-test" location="src-test"/> |
||
8 | <property name="lib" location="lib"/> |
||
9 | <property name="build" location="bin"/> |
||
10 | <property name="build-test" location="bin-test"/> |
||
11 | <property name="dist" location="dist"/> |
||
12 | 16999 | azabala | <property name="jarName" value="org.gvsig.topology-lib.jar"/> |
13 | 13821 | azabala | <!--This could change, so we could copy this jar in lib directory of extTopology
|
14 | project-->
|
||
15 | <property name="targetDir" location="../libFMap/lib"/> |
||
16 | <property name="topology.home" value="${build}/org/gvsig/topology" /> |
||
17 | <property name="i18n" location="../libInternationalization"/> |
||
18 | <property name="i18nLibs" location="${i18n}/lib"/> |
||
19 | 16999 | azabala | <property name="andami" value="../_fwAndami"/> |
20 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
21 | 13821 | azabala | <import file="../binaries/ant/utilities.xml"/> |
22 | |||
23 | 21347 | jmvivo | |
24 | 13821 | azabala | <target name="init"> |
25 | <tstamp/> |
||
26 | <echo>
|
||
27 | Compiling ${ant.project.name}... |
||
28 | </echo>
|
||
29 | </target>
|
||
30 | |||
31 | 21347 | jmvivo | |
32 | 16999 | azabala | <target name="dist" depends="init, create-jar, move-to-andami" |
33 | 13821 | azabala | description="generate the distribution" > |
34 | </target>
|
||
35 | 21347 | jmvivo | |
36 | 13821 | azabala | <target name="batch-build" |
37 | description="compile the sources, create the jar file" |
||
38 | 21347 | jmvivo | depends="compile,create-jar,move-to-andami"> |
39 | 13821 | azabala | </target>
|
40 | |||
41 | <target name="compile" description="compile the source" > |
||
42 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
43 | <mkdir dir="${build}" /> |
||
44 | <loadEclipseClasspath project="${basedir}"/> |
||
45 | <gvSIG-javac
|
||
46 | classpath="${eclipseClasspath}" |
||
47 | />
|
||
48 | <copy todir="${topology.home}/i18n/resources/translations"> |
||
49 | <fileset dir="config" includes="*" /> |
||
50 | </copy>
|
||
51 | </target>
|
||
52 | |||
53 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
54 | <mkdir dir="${dist}"/> |
||
55 | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
||
56 | <jar jarfile="${dist}/${jarName}" basedir="." includes = "images/*" update="true" /> |
||
57 | </target>
|
||
58 | |||
59 | 21347 | jmvivo | |
60 | 13821 | azabala | <target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
61 | <copy todir="${dist}"> |
||
62 | <fileset dir="./lib" includes="*.jar"/> |
||
63 | </copy>
|
||
64 | <move todir="${targetDir}/"> |
||
65 | <fileset dir="${dist}" includes="**/**"/> |
||
66 | </move>
|
||
67 | </target>
|
||
68 | 21347 | jmvivo | |
69 | 16999 | azabala | <target name="move-to-andami" description="Move jars and required libraries to andami plugin directory"> |
70 | <copy todir="${dist}"> |
||
71 | <fileset dir="./lib" includes="*.jar"/> |
||
72 | </copy>
|
||
73 | 21347 | jmvivo | |
74 | |||
75 | 16999 | azabala | <move todir="${extensionsDir}/com.iver.cit.gvsig/lib/"> |
76 | <fileset dir="${dist}" includes="**/**"/> |
||
77 | </move>
|
||
78 | </target>
|
||
79 | 21347 | jmvivo | |
80 | |||
81 | |||
82 | |||
83 | |||
84 | 13821 | azabala | <target name="clean" |
85 | description="clean up" > |
||
86 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
87 | <delete dir="${build}"/> |
||
88 | <delete dir="${dist}"/> |
||
89 | </target>
|
||
90 | 21347 | jmvivo | |
91 | 13821 | azabala | <target name="run-tests" depends="batch-build"> |
92 | <!--
|
||
93 | <antcall target="generic-run-tests">
|
||
94 | <param name="TestSuite.Name" value="org.cresques.cts.AllTests"/>
|
||
95 | </antcall>
|
||
96 | -->
|
||
97 | </target>
|
||
98 | </project>
|