root / trunk / libraries / libTopology / build.xml @ 16502
History | View | Annotate | Download (2.5 KB)
1 |
<project name="libTopology" default="dist" basedir="."> |
---|---|
2 |
<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 |
<property name="jarName" value="org.gvsig.topology.jar"/> |
13 |
<!--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 |
<import file="../binaries/ant/utilities.xml"/> |
20 |
|
21 |
<target name="init"> |
22 |
<tstamp/> |
23 |
<echo>
|
24 |
Compiling ${ant.project.name}... |
25 |
</echo>
|
26 |
</target>
|
27 |
|
28 |
|
29 |
<target name="dist" depends="init, create-jar" |
30 |
description="generate the distribution" > |
31 |
</target>
|
32 |
|
33 |
<target name="batch-build" |
34 |
description="compile the sources, create the jar file" |
35 |
depends="compile,create-jar"> |
36 |
</target>
|
37 |
|
38 |
<target name="compile" description="compile the source" > |
39 |
<!-- Compile the Java code from ${src} to ${build} -->
|
40 |
<mkdir dir="${build}" /> |
41 |
<loadEclipseClasspath project="${basedir}"/> |
42 |
<gvSIG-javac
|
43 |
classpath="${eclipseClasspath}" |
44 |
/>
|
45 |
<copy todir="${topology.home}/i18n/resources/translations"> |
46 |
<fileset dir="config" includes="*" /> |
47 |
</copy>
|
48 |
</target>
|
49 |
|
50 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
51 |
<mkdir dir="${dist}"/> |
52 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
53 |
<jar jarfile="${dist}/${jarName}" basedir="." includes = "images/*" update="true" /> |
54 |
</target>
|
55 |
|
56 |
|
57 |
<target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
58 |
<copy todir="${dist}"> |
59 |
<fileset dir="./lib" includes="*.jar"/> |
60 |
</copy>
|
61 |
<move todir="${targetDir}/"> |
62 |
<fileset dir="${dist}" includes="**/**"/> |
63 |
</move>
|
64 |
</target>
|
65 |
|
66 |
|
67 |
<target name="clean" |
68 |
description="clean up" > |
69 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
70 |
<delete dir="${build}"/> |
71 |
<delete dir="${dist}"/> |
72 |
</target>
|
73 |
|
74 |
<target name="run-tests" depends="batch-build"> |
75 |
<!--
|
76 |
<antcall target="generic-run-tests">
|
77 |
<param name="TestSuite.Name" value="org.cresques.cts.AllTests"/>
|
78 |
</antcall>
|
79 |
-->
|
80 |
</target>
|
81 |
</project>
|
82 |
|