svn-gvsig-desktop / tags / v1_0_2_Build_898 / libraries / libCq CMS for java.old / build.xml @ 10513
History | View | Annotate | Download (3.42 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="cresques.home" value="${build}/org/cresques" /> |
13 |
<property name="i18n" location="../libInternationalization"/> |
14 |
<property name="i18nLibs" location="${i18n}/lib"/> |
15 |
<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:${i18nLibs}/gvsig-i18n.jar:${lib}/jecw-0.0.1.jar:${lib}/jecwcompress-0.1.0.jar:${lib}/jgdal-0.6.0.jar:${lib}/jmgeoraster.jar:${lib}/jmrsid-0.0.2.jar:${lib}/jogr.jar:${lib}/kxml2.jar:${lib}/tar.jar" /> |
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp/> |
20 |
<!-- Create the build directory structure used by compile -->
|
21 |
<mkdir dir="${build}"/> |
22 |
</target>
|
23 |
|
24 |
<target name="dist" depends="init" |
25 |
description="generate the distribution" > |
26 |
<!-- Create the distribution directory -->
|
27 |
<mkdir dir="${dist}"/> |
28 |
<copy todir="${cresques.home}/i18n/resources/translations"> |
29 |
<fileset dir="config" includes="*" /> |
30 |
</copy>
|
31 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
32 |
<jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
33 |
<jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*.gif" update="true" /> |
34 |
<copy todir="${dist}"> |
35 |
<fileset dir="./lib" includes="*.jar"/> |
36 |
</copy>
|
37 |
<!--<copy todir="${targetDir1}/">
|
38 |
<fileset dir="${dist}" includes="**/**"/>
|
39 |
</copy>
|
40 |
<copy todir="${targetDir2}/">
|
41 |
<fileset dir="${dist}" includes="${jar}.jar"/>
|
42 |
</copy> -->
|
43 |
<move todir="${targetDir}/"> |
44 |
<fileset dir="${dist}" includes="**/**"/> |
45 |
</move>
|
46 |
</target>
|
47 |
|
48 |
<target name="batch-build" |
49 |
description="compile the sources, create the jar file" |
50 |
depends="compile,create-jar,move-to-fmap"> |
51 |
</target>
|
52 |
|
53 |
<target name="compile" description="compile the source" > |
54 |
<!-- Compile the Java code from ${src} to ${build} -->
|
55 |
<mkdir dir="${build}" /> |
56 |
<javac srcdir="${src}" |
57 |
destdir="${build}" |
58 |
source="1.4" |
59 |
target="1.4" |
60 |
debug="${debug}" |
61 |
debuglevel="${debuglevel}" |
62 |
classpath="${compile-classpath}"/> |
63 |
<copy todir="${cresques.home}/i18n/resources/translations"> |
64 |
<fileset dir="config" includes="*" /> |
65 |
</copy>
|
66 |
</target>
|
67 |
|
68 |
<target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
69 |
<copy todir="${dist}"> |
70 |
<fileset dir="./lib" includes="*.jar"/> |
71 |
</copy>
|
72 |
<copy todir="."> |
73 |
<fileset dir="${dist}" includes="${jar}.jar"/> |
74 |
</copy>
|
75 |
<move todir="${targetDir}/"> |
76 |
<fileset dir="${dist}" includes="**/**"/> |
77 |
</move>
|
78 |
</target>
|
79 |
|
80 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
81 |
<mkdir dir="${dist}"/> |
82 |
<jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
83 |
<jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*" update="true" /> |
84 |
</target>
|
85 |
|
86 |
<target name="clean" |
87 |
description="clean up" > |
88 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
89 |
<delete dir="${build}"/> |
90 |
<delete dir="${dist}"/> |
91 |
<delete file="${jar}.jar"/> |
92 |
</target>
|
93 |
</project>
|
94 |
|