root / tags / v1_1_Build_1003 / extensions / extWMS / build.xml @ 12271
History | View | Annotate | Download (5.49 KB)
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin en Andami |
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="mainplugin" value="com.iver.cit.gvsig"/> |
11 |
<property name="plugin" value="com.iver.cit.gvsig.wms"/> |
12 |
<property name="gvsiglibjar" value="gvsig-wms"/> |
13 |
<property name="fmapjar" value="fmap-wms"/> |
14 |
<property name="driverjar" value="wms"/> |
15 |
<property name="andami" location="../_fwAndami"/> |
16 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
17 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
18 |
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
19 |
<property name="andamiLibs" location="${andami}/lib" /> |
20 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
21 |
<property name="fmapLibs" location="../libFMap/lib" /> |
22 |
<property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
23 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
24 |
<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/gt2-wms.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${andamiLibs}/kxml2.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${andamiLibs}/tempFileManager.jar" /> |
25 |
<!-- ${fmapLibs}/geoapi-2.0.jar:${fmapLibs}/gt2-main.jar -->
|
26 |
<property name="JavaSourceVersion" value="1.4"/> |
27 |
<property name="JavaTargetVersion" value="1.4"/> |
28 |
<property name="encoding" value="ISO_8859_1"/> |
29 |
|
30 |
|
31 |
<target name="init"> |
32 |
<!-- Create the time stamp -->
|
33 |
<tstamp/> |
34 |
<!-- Create the build directory structure used by compile -->
|
35 |
<mkdir dir="${build}"/> |
36 |
<mkdir dir="${dist}"/> |
37 |
|
38 |
</target>
|
39 |
|
40 |
<target name="import-build-number"> |
41 |
<copy todir="."> |
42 |
<fileset file="${buildNumberFile}"/> |
43 |
</copy>
|
44 |
</target>
|
45 |
|
46 |
|
47 |
<target name="generate-without-source" |
48 |
description="generate the distribution without the source file"> |
49 |
<!-- Create the distribution directory -->
|
50 |
<mkdir dir="${dist}"/> |
51 |
|
52 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
53 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
54 |
excludes="com/iver/cit/gvsig/fmap/**" |
55 |
/>
|
56 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
57 |
includes="com/iver/cit/gvsig/fmap/**" /> |
58 |
<!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
59 |
<copy file="config/config.xml" todir="${dist}"/> |
60 |
<copy file="build.number" todir="${dist}"/> |
61 |
<copy todir="${dist}"> |
62 |
<fileset dir="config" includes="text*.properties"/> |
63 |
</copy>
|
64 |
<copy todir="${dist}/images"> |
65 |
<fileset dir="images/" includes="*"/> |
66 |
</copy>
|
67 |
<copy todir="${lib-dir}"> |
68 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
69 |
<fileset dir="." includes=".keystore"/> |
70 |
</copy>
|
71 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
72 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
73 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
74 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
75 |
</move>
|
76 |
<move todir="${extensionsDir}/${plugin}/"> |
77 |
<fileset dir="${dist}" includes="**/**"/> |
78 |
</move>
|
79 |
</target>
|
80 |
|
81 |
|
82 |
<target name="batch-build" |
83 |
description="compile the sources, create the jar file" |
84 |
depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
85 |
</target>
|
86 |
|
87 |
<target name="compile" description="compile the source" > |
88 |
<!-- Compile the Java code from ${src} to ${build} -->
|
89 |
<mkdir dir="${build}" /> |
90 |
<echo>${compile-classpath}</echo> |
91 |
<javac srcdir="${src}" |
92 |
destdir="${build}" |
93 |
source="${JavaSourceVersion}" |
94 |
target="${JavaTargetVersion}" |
95 |
debug="${debug}" |
96 |
debuglevel="${debuglevel}" |
97 |
classpath="${compile-classpath}" |
98 |
encoding="${encoding}"/> |
99 |
</target>
|
100 |
|
101 |
<target name="create-jar" |
102 |
description="Creates the plugin jar"> |
103 |
<mkdir dir="${dist}/lib"/> |
104 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
105 |
excludes="com/iver/cit/gvsig/fmap/**" |
106 |
/>
|
107 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
108 |
includes="com/iver/cit/gvsig/fmap/**" /> |
109 |
</target>
|
110 |
|
111 |
<target name="copy-data-files"> |
112 |
<copy file="config/config.xml" todir="${dist}"/> |
113 |
<copy file="build.number" todir="${dist}"/> |
114 |
<copy todir="${dist}"> |
115 |
<fileset dir="config" includes="text*.properties"/> |
116 |
</copy>
|
117 |
<copy todir="${dist}/images"> |
118 |
<fileset dir="images/" includes="*"/> |
119 |
</copy>
|
120 |
</target>
|
121 |
|
122 |
<target name="copy-libs"> |
123 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
124 |
<fileset file="${remoteclientjar}"/> |
125 |
</copy>
|
126 |
</target>
|
127 |
|
128 |
<target name="move-to-andami"> |
129 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
130 |
<fileset dir="${lib}" includes="*.jar,*.zip"/> |
131 |
</copy>
|
132 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
133 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
134 |
</move>
|
135 |
<move todir="${extensionsDir}/${plugin}/"> |
136 |
<fileset dir="${dist}" includes="**/**"/> |
137 |
</move>
|
138 |
</target>
|
139 |
|
140 |
|
141 |
<target name="clean" |
142 |
description="clean up" > |
143 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
144 |
<delete dir="${dist}"/> |
145 |
<delete dir="${build}"/> |
146 |
</target>
|
147 |
</project>
|
148 |
|