svn-gvsig-desktop / tags / v2_0_0_Build_2003 / libraries / libProjection / build.xml @ 43747
History | View | Annotate | Download (2.52 KB)
1 |
<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="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.cresques.cts.jar"/> |
13 |
<property name="targetDir" location="../libFMap/lib"/> |
14 |
<property name="cresques.home" value="${build}/org/cresques" /> |
15 |
<property name="i18n" location="../libInternationalization"/> |
16 |
<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 |
<import file="../binaries/ant/utilities.xml"/> |
19 |
|
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" |
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"> |
34 |
</target>
|
35 |
|
36 |
<target name="compile" description="compile the source" > |
37 |
<!-- Compile the Java code from ${src} to ${build} -->
|
38 |
<mkdir dir="${build}" /> |
39 |
<loadEclipseClasspath project="${basedir}"/> |
40 |
<gvSIG-javac
|
41 |
classpath="${eclipseClasspath}" |
42 |
/>
|
43 |
<!--<javac srcdir="${src}"
|
44 |
destdir="${build}"
|
45 |
source="${JavaSourceVersion}"
|
46 |
target="${JavaTargetVersion}"
|
47 |
debug="${debug}"
|
48 |
debuglevel="${debuglevel}"
|
49 |
classpath="${compile-classpath}"
|
50 |
encoding="${encoding}"/>-->
|
51 |
<copy todir="${cresques.home}/i18n/resources/translations"> |
52 |
<fileset dir="config" includes="*" /> |
53 |
</copy>
|
54 |
</target>
|
55 |
|
56 |
<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 |
|
62 |
<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 |
|
69 |
<target name="run-tests" depends="batch-build,compile-tests"> |
70 |
<antcall target="generic-run-tests"> |
71 |
<param name="TestSuite.Name" value="org.cresques.cts.AllTests"/> |
72 |
</antcall>
|
73 |
</target>
|
74 |
|
75 |
</project>
|
76 |
|