root / tags / v1_1_Build_1000 / libraries / libCq_CMS_praster / build.xml @ 11885
History | View | Annotate | Download (2.98 KB)
1 |
<project name="CMS for Java" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Genera el jar con CMS y sus dependencias |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="lib" location="lib"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="dist" location="dist"/> |
10 |
<property name="jar" value="cms"/> |
11 |
<property name="targetDir" location="../libFMap/lib"/> |
12 |
<property name="extPiloto" location="../extgvSIGPiloto-Raster/lib"/> |
13 |
<property name="compile-classpath" value="${lib}/geoapi-2.0.jar:${lib}/geojava.jar:${lib}/geotiff-jai.jar:${lib}/gt2-legacy.jar:${lib}/gt2-main.jar:${lib}/jecw-0.0.1.jar:${lib}/jecwcompress-0.1.0.jar:${lib}/jgdal-0.1.0.jar:${lib}/jmgeoraster.jar:${lib}/jmrsid-0.0.2.jar:${lib}/jogr.jar:${lib}/kxml2.jar:${lib}/tar.jar" /> |
14 |
|
15 |
<target name="init"> |
16 |
<!-- Create the time stamp -->
|
17 |
<tstamp/> |
18 |
<!-- Create the build directory structure used by compile -->
|
19 |
<mkdir dir="${build}"/> |
20 |
</target>
|
21 |
|
22 |
<target name="dist" depends="init" |
23 |
description="generate the distribution" > |
24 |
<!-- Create the distribution directory -->
|
25 |
<mkdir dir="${dist}"/> |
26 |
|
27 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
28 |
<jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
29 |
<jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*.gif" update="true" /> |
30 |
<copy todir="${dist}"> |
31 |
<fileset dir="./lib" includes="*.jar"/> |
32 |
</copy>
|
33 |
<copy todir="${extPiloto}" overwrite="yes"> |
34 |
<fileset dir="${dist}" includes="${jar}.jar" /> |
35 |
</copy>
|
36 |
<move todir="${targetDir}/"> |
37 |
<fileset dir="${dist}" includes="**/**"/> |
38 |
</move>
|
39 |
</target>
|
40 |
|
41 |
<target name="batch-build" |
42 |
description="compile the sources, create the jar file" |
43 |
depends="compile,create-jar,move-to-fmap"> |
44 |
</target>
|
45 |
|
46 |
<target name="compile" description="compile the source" > |
47 |
<!-- Compile the Java code from ${src} to ${build} -->
|
48 |
<mkdir dir="${build}" /> |
49 |
<javac srcdir="${src}" |
50 |
destdir="${build}" |
51 |
classpath="${compile-classpath}"/> |
52 |
</target>
|
53 |
|
54 |
<target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
55 |
<copy todir="${dist}"> |
56 |
<fileset dir="./lib" includes="*.jar"/> |
57 |
</copy>
|
58 |
<copy todir="."> |
59 |
<fileset dir="${dist}" includes="${jar}.jar"/> |
60 |
</copy>
|
61 |
<copy todir="${extPiloto}" overwrite="yes"> |
62 |
<fileset dir="${dist}" includes="${jar}.jar" /> |
63 |
</copy>
|
64 |
<move todir="${targetDir}/"> |
65 |
<fileset dir="${dist}" includes="**/**"/> |
66 |
</move>
|
67 |
</target>
|
68 |
|
69 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
70 |
<mkdir dir="${dist}"/> |
71 |
<jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
72 |
<jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*" update="true" /> |
73 |
</target>
|
74 |
|
75 |
<target name="clean" |
76 |
description="clean up" > |
77 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
78 |
<delete dir="${build}"/> |
79 |
<delete dir="${dist}"/> |
80 |
<delete file="${jar}.jar"/> |
81 |
</target>
|
82 |
</project>
|
83 |
|