svn-gvsig-desktop / tags / v1_0_2_Build_900 / libraries / libCq CMS for java.old / build.xml @ 10562
History | View | Annotate | Download (3.42 KB)
1 | 4231 | nacho | <project name="CMS for Java" default="dist" basedir="."> |
---|---|---|---|
2 | 2809 | nacho | <description>
|
3 | Genera el jar con CMS y sus dependencias |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | 4858 | cesar | <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 | 7278 | cesar | <property name="cresques.home" value="${build}/org/cresques" /> |
13 | 8765 | jjdelcerro | <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 | 2809 | nacho | |
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 | 4865 | cesar | <target name="dist" depends="init" |
25 | 2809 | nacho | description="generate the distribution" > |
26 | <!-- Create the distribution directory -->
|
||
27 | <mkdir dir="${dist}"/> |
||
28 | 7278 | cesar | <copy todir="${cresques.home}/i18n/resources/translations"> |
29 | 7276 | cesar | <fileset dir="config" includes="*" /> |
30 | </copy>
|
||
31 | 2809 | nacho | <!-- 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 | 4946 | cesar | <!--<copy todir="${targetDir1}/">
|
38 | 2809 | nacho | <fileset dir="${dist}" includes="**/**"/>
|
39 | </copy>
|
||
40 | <copy todir="${targetDir2}/">
|
||
41 | <fileset dir="${dist}" includes="${jar}.jar"/>
|
||
42 | 4946 | cesar | </copy> -->
|
43 | 2809 | nacho | <move todir="${targetDir}/"> |
44 | <fileset dir="${dist}" includes="**/**"/> |
||
45 | </move>
|
||
46 | </target>
|
||
47 | |||
48 | 4858 | cesar | <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 | 7776 | cesar | source="1.4" |
59 | target="1.4" |
||
60 | 6296 | cesar | debug="${debug}" |
61 | debuglevel="${debuglevel}" |
||
62 | 4858 | cesar | classpath="${compile-classpath}"/> |
63 | 7278 | cesar | <copy todir="${cresques.home}/i18n/resources/translations"> |
64 | 7276 | cesar | <fileset dir="config" includes="*" /> |
65 | </copy>
|
||
66 | 4858 | cesar | </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 | 4865 | cesar | <jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*" update="true" /> |
84 | 4858 | cesar | </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 | 4865 | cesar | <delete file="${jar}.jar"/> |
92 | 4858 | cesar | </target>
|
93 | 2809 | nacho | </project>
|