Revision 12175 trunk/libraries/libGPE-GML/build.xml
build.xml | ||
---|---|---|
1 |
<project name="libGPE" default="dist" basedir="."> |
|
2 |
<description> |
|
3 |
Genera el jar con libGPE-GML y sus dependencias |
|
4 |
</description> |
|
5 |
<!-- set global properties for this build --> |
|
6 |
<property name="src" location="src" /> |
|
7 |
<property name="build" location="bin" /> |
|
8 |
<property name="dist" location="dist" /> |
|
9 |
<property name="lib" location="lib" /> |
|
10 |
<property name="remoteServicesLibs" location="../remoteServices/lib" /> |
|
11 |
<property name="fmapLibs" location="../libFMap" /> |
|
12 |
<property name="jarName" value="libGPE-GML" /> |
|
13 |
<property name="targetDir" location="../libFMap/lib" /> |
|
14 |
<property name="compile-classpath" value="${remoteServicesLibs}/kxml2.jar:${remoteServicesLibs}/gvsig-exceptions.jar" /> |
|
1 |
<project name="libGPE" default="create-jar" basedir="."> |
|
2 |
<!-- set global properties for this build --> |
|
3 |
<property name="src" location="src"/> |
|
4 |
<property name="build" location="bin"/> |
|
5 |
<property name="targetDir" location="dist"/> |
|
6 |
<property name="lib" location="lib" /> |
|
7 |
<property name="gmlJarName" value="org.gvsig.gpe.gml"/> |
|
8 |
<property name="compile-classpath" value="" /> |
|
15 | 9 |
|
16 |
<target name="init"> |
|
17 |
<!-- Create the time stamp --> |
|
18 |
<tstamp /> |
|
19 |
<echo> |
|
20 |
Compiling ${ant.project.name}...</echo> |
|
21 |
<!-- Create the build directory structure used by compile --> |
|
22 |
<mkdir dir="${build}" /> |
|
23 |
</target> |
|
10 |
<target name="init"> |
|
11 |
<!-- Create the time stamp --> |
|
12 |
<tstamp/> |
|
13 |
<echo> |
|
14 |
Compiling ${ant.project.name}...</echo> |
|
15 |
</target> |
|
24 | 16 |
|
25 |
<target name="dist" depends="init" description="generate the distribution"> |
|
26 |
<!-- Create the distribution directory --> |
|
27 |
<mkdir dir="${dist}" /> |
|
28 |
|
|
29 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file --> |
|
30 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
|
31 |
|
|
32 |
<move todir="${targetDir}/"> |
|
33 |
<fileset dir="${dist}" includes="**/**" /> |
|
34 |
</move> |
|
35 |
<!--<copy todir="${targetDir}/"> |
|
36 |
<fileset dir="${lib}" includes="*.jar" /> |
|
37 |
</copy>--> |
|
38 |
</target> |
|
39 |
|
|
40 |
<target name="batch-build" |
|
17 |
<target name="batch-build" |
|
41 | 18 |
description="compile the sources, create the jar file" |
42 |
depends="init,compile,create-jar,move-to-fmap">
|
|
19 |
depends="init,compile,create-jar"> |
|
43 | 20 |
</target> |
44 | 21 |
|
45 | 22 |
<target name="compile" description="compile the source"> |
... | ... | |
49 | 26 |
destdir="${build}" |
50 | 27 |
source="1.4" |
51 | 28 |
target="1.4" |
52 |
classpath="${compile-classpath}" |
|
53 | 29 |
debug="${debug}" |
54 | 30 |
debuglevel="${debuglevel}" |
55 |
excludes="**/Tests/*.java" /> |
|
56 |
</target> |
|
57 |
|
|
58 |
<target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
|
59 |
<copy todir="${targetDir}"> |
|
60 |
<fileset dir="./lib" includes="*.jar" /> |
|
31 |
classpath="${compile-classpath}"/> |
|
32 |
<!-- copy any images or resources present in the src dir --> |
|
33 |
<copy todir="${build}"> |
|
34 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
|
61 | 35 |
</copy> |
62 |
<copy todir="."> |
|
63 |
<fileset dir="${dist}" includes="${jarName}.jar" /> |
|
64 |
</copy> |
|
65 |
<move todir="${targetDir}/"> |
|
66 |
<fileset dir="${dist}" includes="**/**" /> |
|
67 |
</move> |
|
68 | 36 |
</target> |
69 | 37 |
|
70 | 38 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
71 |
<mkdir dir="${dist}" /> |
|
72 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
|
73 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
|
39 |
<mkdir dir="${targetDir}" /> |
|
40 |
<jar jarfile="${targetDir}/${gmlJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/gml/**,org/gvsig/gpe/xml/**"/> |
|
41 |
<jar jarfile="${targetDir}/${gmlJarName}.jar" basedir="." includes="build.number" update="true"/> |
|
42 |
<move todir="${lib}"> |
|
43 |
<fileset dir="${targetDir}" includes="*.jar" /> |
|
44 |
</move> |
|
45 |
<delete dir="${targetDir}"/> |
|
74 | 46 |
</target> |
75 | 47 |
|
76 | 48 |
<target name="clean" description="clean up"> |
77 | 49 |
<!-- Delete the ${build} and ${dist} directory trees --> |
78 | 50 |
<delete dir="${build}" /> |
79 |
<delete dir="${dist}" />
|
|
51 |
<delete dir="${targetDir}" />
|
|
80 | 52 |
</target> |
53 |
|
|
81 | 54 |
</project> |
82 |
|
Also available in: Unified diff