svn-gvsig-desktop / tags / v1_0_2_RELEASE / applications / appgvSIG / build.xml @ 33823
History | View | Annotate | Download (30.8 KB)
1 |
<project name="appgvSIG" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<!-- <property name="buildDate" value="20041018"/> -->
|
7 |
<property name="version" value="1.0 beta ${eclipse.startTime}"/> |
8 |
<property name="src" location="src"/> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="lib" location="lib"/> |
12 |
<property name="plugin" value="com.iver.cit.gvsig"/> |
13 |
<property name="fmapdir" value="../libFMap"/> |
14 |
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
15 |
<property name="andamiLibs" location="../_fwAndami/lib"/> |
16 |
<property name="fmapLibs" location="../libFMap/lib"/> |
17 |
<property name="andamiJar" location="../_fwAndami/andami.jar"/> |
18 |
<property name="makeZip" location="makeZip"/> |
19 |
<property name="zipName" value="gvSIG-${version}"/> |
20 |
<import file="compile-classpath.xml"/> |
21 |
<import file="../_fwAndami/compile-classpath.xml"/> |
22 |
<property name="build-doc" value="build-doc"/> |
23 |
<property name="JavaSourceVersion" value="1.4"/> |
24 |
<property name="JavaTargetVersion" value="1.4"/> |
25 |
|
26 |
<target name="init"> |
27 |
<!-- Create the time stamp -->
|
28 |
<tstamp/> |
29 |
<echo>
|
30 |
Compiling ${ant.project.name}...</echo>
|
31 |
|
32 |
<property file="build.number"/> |
33 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
34 |
<!-- <buildnumber/> -->
|
35 |
</target>
|
36 |
|
37 |
<target name="build-doc" depends="" description="Genera un zip con la documentación"> |
38 |
<javadoc
|
39 |
packagenames="com.iver.cit.gvsig.*" |
40 |
sourcepath="src" |
41 |
defaultexcludes="yes" |
42 |
destdir="${build-doc}/gvSIG-api" |
43 |
windowtitle="gvSIG API"> |
44 |
</javadoc>
|
45 |
</target>
|
46 |
|
47 |
<target name="dist" |
48 |
depends="init" |
49 |
description="Generate the distribution of the gvSIG plugin. To build just the appgvSIG project from Eclipse " > |
50 |
<!-- Create the distribution directory -->
|
51 |
<mkdir dir="${dist}"/> |
52 |
|
53 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
54 |
<copy todir="${dist}/lib"> |
55 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
56 |
</copy>
|
57 |
<copy todir="${dist}/lib"> |
58 |
<fileset dir="${fmapdir}/lib" includes="*.jar"/> |
59 |
</copy>
|
60 |
<jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/> |
61 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
62 |
<copy file="config/config.xml" todir="${dist}"/> |
63 |
<copy file="config/about.htm" todir="${dist}"/> |
64 |
<copy file="build.number" todir="${dist}"/> |
65 |
<copy todir="${dist}"> |
66 |
<fileset dir="config" includes="text*.properties"/> |
67 |
</copy>
|
68 |
<copy todir="${dist}/images"> |
69 |
<fileset dir="images/" includes="*"/> |
70 |
</copy>
|
71 |
<copy todir="${dist}/northimages"> |
72 |
<fileset dir="northimages/" includes="*"/> |
73 |
</copy>
|
74 |
|
75 |
<move todir="${extensionDir}/${plugin}/"> |
76 |
<fileset dir="${dist}" includes="**/**"/> |
77 |
</move>
|
78 |
</target>
|
79 |
|
80 |
<target name="makeZip" |
81 |
description="Genera un zip con todo lo necesario para ejecutar gvSIG. Actualmente no se usa" |
82 |
depends="dist"> |
83 |
<!-- Create the distribution directory -->
|
84 |
<mkdir dir="${dist}/${zipName}"/> |
85 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/> |
86 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/> |
87 |
<jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/> |
88 |
<copy todir="${dist}/${zipName}"> |
89 |
<fileset dir="../mdiApp"> |
90 |
<include name="extensiones/${plugin}/**"/> |
91 |
<include name="extensiones/plugin.*"/> |
92 |
<include name="plugin.*"/> |
93 |
</fileset>
|
94 |
<!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
|
95 |
<fileset dir="../mdiApp_v02_estable"> |
96 |
<include name="lib/**"/> |
97 |
</fileset>
|
98 |
<fileset dir="distFiles" includes="**/**"/> |
99 |
</copy>
|
100 |
<zip zipfile="${zipName}.zip"> |
101 |
<fileset dir="${dist}"> |
102 |
<include name="**/**"/> |
103 |
</fileset>
|
104 |
</zip>
|
105 |
<!-- <delete dir="${dist}"/> -->
|
106 |
</target>
|
107 |
|
108 |
<target name="make-binary-distribution" |
109 |
description="Prepare a binary distribution of the application. This increments the build number and then makes a global build" |
110 |
depends="buildNumber,build-all"> |
111 |
</target>
|
112 |
|
113 |
<target name="batch-build" |
114 |
description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" |
115 |
depends="init,get-fmap-libs,compile,create-jar,copy-libs,copy-data-files,move-to-andami"> |
116 |
</target>
|
117 |
|
118 |
<target name="compile" description="compile the source"> |
119 |
<!-- Create the time stamp -->
|
120 |
<tstamp/> |
121 |
<!-- Create the build directory structure used by compile -->
|
122 |
<mkdir dir="${build}"/> |
123 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
124 |
<!-- <buildnumber />-->
|
125 |
<!-- Compile the Java code from ${src} to ${build} -->
|
126 |
<javac srcdir="${src}" |
127 |
destdir="${build}" |
128 |
source="${JavaSourceVersion}" |
129 |
target="${JavaTargetVersion}" |
130 |
debug="${debug}" |
131 |
debuglevel="${debuglevel}" |
132 |
excludes="com/iver/cit/gvsig/test/**"> |
133 |
<classpath refid="appgvSIG.compile-classpath"/> |
134 |
<!-- <classpath refid="_fwAndami.compile-classpath"/> -->
|
135 |
</javac>
|
136 |
</target>
|
137 |
|
138 |
<target name="create-jar" description="Creates the jar file"> |
139 |
<mkdir dir="${dist}/lib"/> |
140 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
141 |
</target>
|
142 |
|
143 |
<target name="copy-libs" |
144 |
depends="get-fmap-libs"> |
145 |
<mkdir dir="${dist}"/> |
146 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
147 |
<copy todir="${dist}/lib"> |
148 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
149 |
</copy>
|
150 |
</target>
|
151 |
|
152 |
<target name="get-fmap-libs"> |
153 |
<copy todir="${dist}/lib"> |
154 |
<fileset dir="${fmapdir}/lib" includes="*.jar"/> |
155 |
</copy>
|
156 |
<jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/> |
157 |
<copy file="${dist}/lib/fmap.jar" todir="${extensionDir}/${plugin}/lib"/> |
158 |
</target>
|
159 |
|
160 |
<target name="copy-data-files"> |
161 |
<copy todir="${dist}"> |
162 |
<fileset dir="config" includes="*" /> |
163 |
</copy>
|
164 |
<copy file="build.number" todir="${dist}"/> |
165 |
<copy todir="${dist}/images"> |
166 |
<fileset dir="images/" includes="*"/> |
167 |
</copy>
|
168 |
<copy todir="${dist}/northimages"> |
169 |
<fileset dir="northimages/" includes="*"/> |
170 |
</copy>
|
171 |
</target>
|
172 |
|
173 |
<target name="move-to-andami" description="Moves the build directory to andami"> |
174 |
<move todir="${extensionDir}/${plugin}/"> |
175 |
<fileset dir="${dist}" includes="**/**"/> |
176 |
</move>
|
177 |
</target>
|
178 |
|
179 |
<target name="clean" |
180 |
description="clean up" > |
181 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
182 |
<delete dir="${build}"/> |
183 |
<!-- <delete dir="${dist}"/> -->
|
184 |
</target>
|
185 |
|
186 |
|
187 |
<!-- the global build starts here -->
|
188 |
<property name="andami" location="../_fwAndami"/> |
189 |
<property name="utiles" location="../libIverUtiles"/> |
190 |
<property name="core" location="../libCorePlugin"/> |
191 |
<property name="driver" location="../libDriverManager"/> |
192 |
<property name="cms" location="../libCq CMS for java"/> |
193 |
<property name="fmap" location="../libFMap"/> |
194 |
<property name="gvSIG" location="../appgvSIG"/> |
195 |
<property name="remote" location="../libRemoteServices"/> |
196 |
<property name="gdbms" location="../libGDBMS"/> |
197 |
<property name="i18n" location="../libInternationalization"/> |
198 |
<property name="global.installBaseDir" location="${andami}"/> |
199 |
|
200 |
<target name="buildNumber" |
201 |
description="Generates the build.number for the application"> |
202 |
<propertyfile
|
203 |
file="build.number" |
204 |
comment="Build Number for ANT. Do not edit!"> |
205 |
<entry key="build.number" default="0" type="int" operation="+"/> |
206 |
</propertyfile>
|
207 |
</target>
|
208 |
|
209 |
<target name="build-all" |
210 |
depends="debug-no,base,extensions" |
211 |
description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" /> |
212 |
|
213 |
<target name="eclipse-build-all" |
214 |
depends="debug-yes,base,extensions" |
215 |
description="Builds the application, including extensions, producing debug info" /> |
216 |
|
217 |
<target name="debug-yes"> |
218 |
<property name="debug" value="on"/> |
219 |
<property name="debuglevel" value="lines, vars"/> |
220 |
</target>
|
221 |
|
222 |
<target name="debug-no"> |
223 |
<property name="debug" value="off"/> |
224 |
</target>
|
225 |
|
226 |
<target name="eclipse-base" depends="debug-yes,base" /> |
227 |
<target name="eclipse-extensions" depends="debug-yes,base,extensions" /> |
228 |
|
229 |
<target name="base" |
230 |
description="Builds the application, excluding extensions"> |
231 |
<property file="build.number"/> |
232 |
<ant dir="${i18n}" target="batch-build" inheritAll="false"> |
233 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
234 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
235 |
<property name="debug" value="${debug}"/> |
236 |
<property name="debuglevel" value="${debuglevel}"/> |
237 |
<property name="encoding" value="ISO_8859_1"/> |
238 |
</ant>
|
239 |
<ant dir="${utiles}" target="batch-build" inheritAll="false"> |
240 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
241 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
242 |
<property name="debug" value="${debug}"/> |
243 |
<property name="debuglevel" value="${debuglevel}"/> |
244 |
<property name="encoding" value="ISO_8859_1"/> |
245 |
</ant>
|
246 |
<ant dir="${andami}" target="batch-build" inheritAll="false"> |
247 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
248 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
249 |
<property name="debug" value="${debug}"/> |
250 |
<property name="debuglevel" value="${debuglevel}"/> |
251 |
<property name="encoding" value="ISO_8859_1"/> |
252 |
</ant>
|
253 |
<ant dir="${libui}" target="batch-build" inheritAll="false"> |
254 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
255 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
256 |
<property name="debug" value="${debug}"/> |
257 |
<property name="debuglevel" value="${debuglevel}"/> |
258 |
<property name="installBaseDir" value="${global.installBaseDir}"/> |
259 |
<property name="encoding" value="ISO_8859_1"/> |
260 |
</ant>
|
261 |
<ant dir="${core}" target="import-build-number" inheritAll="false"> |
262 |
<property name="buildNumberFile" location="build.number"/> |
263 |
</ant>
|
264 |
<ant dir="${core}" target="batch-build" inheritAll="false"> |
265 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
266 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
267 |
<property name="debug" value="${debug}"/> |
268 |
<property name="debuglevel" value="${debuglevel}"/> |
269 |
<property name="encoding" value="ISO_8859_1"/> |
270 |
</ant>
|
271 |
<ant dir="${cms}" target="batch-build" inheritAll="false"> |
272 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
273 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
274 |
<property name="debug" value="${debug}"/> |
275 |
<property name="debuglevel" value="${debuglevel}"/> |
276 |
<property name="encoding" value="ISO_8859_1"/> |
277 |
</ant>
|
278 |
<ant dir="${driver}" target="batch-build" inheritAll="false"> |
279 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
280 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
281 |
<property name="debug" value="${debug}"/> |
282 |
<property name="debuglevel" value="${debuglevel}"/> |
283 |
<property name="encoding" value="ISO_8859_1"/> |
284 |
</ant>
|
285 |
<ant dir="${remote}" target="batch-build" inheritAll="false"> |
286 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
287 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
288 |
<property name="debug" value="${debug}"/> |
289 |
<property name="debuglevel" value="${debuglevel}"/> |
290 |
<property name="encoding" value="ISO_8859_1"/> |
291 |
</ant>
|
292 |
<ant dir="${gdbms}" target="batch-build" inheritAll="false"> |
293 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
294 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
295 |
<property name="debug" value="${debug}"/> |
296 |
<property name="debuglevel" value="${debuglevel}"/> |
297 |
<property name="encoding" value="ISO_8859_1"/> |
298 |
</ant>
|
299 |
<ant dir="${fmap}" target="batch-build" inheritAll="false"> |
300 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
301 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
302 |
<property name="debug" value="${debug}"/> |
303 |
<property name="debuglevel" value="${debuglevel}"/> |
304 |
<property name="encoding" value="ISO_8859_1"/> |
305 |
</ant>
|
306 |
<ant dir="${gvSIG}" target="batch-build" inheritAll="false"> |
307 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
308 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
309 |
<property name="debug" value="${debug}"/> |
310 |
<property name="debuglevel" value="${debuglevel}"/> |
311 |
<property name="encoding" value="ISO_8859_1"/> |
312 |
</ant>
|
313 |
</target>
|
314 |
|
315 |
<property name="appcatalog" location="../appCatalogYNomenclatorClient"/> |
316 |
<property name="catalog" location="../extCatalogYNomenclator"/> |
317 |
<property name="dataloc" location="../extDataLocator"/> |
318 |
<property name="event" location="../extAddEventTheme"/> |
319 |
<property name="libdwg" location="../libDwg"/> |
320 |
<property name="extdwg" location="../extDwg"/> |
321 |
<property name="cad" location="../extCAD"/> |
322 |
<property name="geoprocessing" location="../extGeoProcessing"/> |
323 |
<property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/> |
324 |
<property name="georeferencing" location="../extGeoreferencing"/> |
325 |
<property name="jdbc" location="../extJDBC"/> |
326 |
<property name="rastertools" location="../extRasterTools"/> |
327 |
<property name="wcs" location="../extWCS"/> |
328 |
<property name="wfs" location="../extWFS2"/> |
329 |
<property name="wms" location="../extWMS"/> |
330 |
<property name="scripting" location="../extScripting"/> |
331 |
<property name="centerview" location="../extCenterViewToPoint"/> |
332 |
<property name="libui" location="../libUI"/> |
333 |
|
334 |
|
335 |
<target name="extensions" depends="base"> |
336 |
<condition property="event.Dir" value="${event}" else="voidTarget"> |
337 |
<available file="${event}" type="dir"/> |
338 |
</condition>
|
339 |
<ant dir="${event.Dir}" target="import-build-number" inheritAll="false"> |
340 |
<property name="buildNumberFile" location="build.number"/> |
341 |
</ant>
|
342 |
<ant dir="${event.Dir}" target="batch-build" inheritAll="false"> |
343 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
344 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
345 |
<property name="debug" value="${debug}"/> |
346 |
<property name="debuglevel" value="${debuglevel}"/> |
347 |
<property name="encoding" value="ISO_8859_1"/> |
348 |
</ant>
|
349 |
<condition property="libdwg.Dir" value="${libdwg}" else="voidTarget"> |
350 |
<available file="${libdwg}" type="dir"/> |
351 |
</condition>
|
352 |
<ant dir="${libdwg.Dir}" target="batch-build" inheritAll="false"> |
353 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
354 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
355 |
<property name="debug" value="${debug}"/> |
356 |
<property name="debuglevel" value="${debuglevel}"/> |
357 |
<property name="encoding" value="ISO_8859_1"/> |
358 |
</ant>
|
359 |
<condition property="extdwg.Dir" value="${extdwg}" else="voidTarget"> |
360 |
<available file="${extdwg}" type="dir"/> |
361 |
</condition>
|
362 |
<ant dir="${extdwg.Dir}" target="batch-build" inheritAll="false"> |
363 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
364 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
365 |
<property name="debug" value="${debug}"/> |
366 |
<property name="debuglevel" value="${debuglevel}"/> |
367 |
<property name="encoding" value="ISO_8859_1"/> |
368 |
</ant>
|
369 |
<condition property="jdbc.Dir" value="${jdbc}" else="voidTarget"> |
370 |
<available file="${jdbc}" type="dir"/> |
371 |
</condition>
|
372 |
<ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false"> |
373 |
<property name="buildNumberFile" location="build.number"/> |
374 |
</ant>
|
375 |
<ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false"> |
376 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
377 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
378 |
<property name="debug" value="${debug}"/> |
379 |
<property name="debuglevel" value="${debuglevel}"/> |
380 |
<property name="encoding" value="ISO_8859_1"/> |
381 |
</ant>
|
382 |
<condition property="cad.Dir" value="${cad}" else="voidTarget"> |
383 |
<available file="${cad}" type="dir"/> |
384 |
</condition>
|
385 |
<ant dir="${cad.Dir}" target="import-build-number" inheritAll="false"> |
386 |
<property name="buildNumberFile" location="build.number"/> |
387 |
</ant>
|
388 |
<ant dir="${cad.Dir}" target="batch-build" inheritAll="false"> |
389 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
390 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
391 |
<property name="debug" value="${debug}"/> |
392 |
<property name="debuglevel" value="${debuglevel}"/> |
393 |
<property name="encoding" value="ISO_8859_1"/> |
394 |
</ant>
|
395 |
<condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
396 |
<available file="${appcatalog}" type="dir"/> |
397 |
</condition>
|
398 |
<ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false"> |
399 |
<property name="buildNumberFile" location="build.number"/> |
400 |
</ant>
|
401 |
<ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false"> |
402 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
403 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
404 |
<property name="debug" value="${debug}"/> |
405 |
<property name="debuglevel" value="${debuglevel}"/> |
406 |
<property name="encoding" value="ISO_8859_1"/> |
407 |
</ant>
|
408 |
<condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
409 |
<available file="${catalog}" type="dir"/> |
410 |
</condition>
|
411 |
<ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false"> |
412 |
<property name="buildNumberFile" location="build.number"/> |
413 |
</ant>
|
414 |
<ant dir="${catalog.Dir}" target="batch-build" inheritAll="false"> |
415 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
416 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
417 |
<property name="debug" value="${debug}"/> |
418 |
<property name="debuglevel" value="${debuglevel}"/> |
419 |
<property name="encoding" value="ISO_8859_1"/> |
420 |
</ant>
|
421 |
<condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
422 |
<available file="${wcs}" type="dir"/> |
423 |
</condition>
|
424 |
<ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false"> |
425 |
<property name="buildNumberFile" location="build.number"/> |
426 |
</ant>
|
427 |
<ant dir="${wcs.Dir}" target="batch-build" inheritAll="false"> |
428 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
429 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
430 |
<property name="debug" value="${debug}"/> |
431 |
<property name="debuglevel" value="${debuglevel}"/> |
432 |
<property name="encoding" value="ISO_8859_1"/> |
433 |
</ant>
|
434 |
<condition property="wms.Dir" value="${wms}" else="voidTarget"> |
435 |
<available file="${wms}" type="dir"/> |
436 |
</condition>
|
437 |
<ant dir="${wms.Dir}" target="import-build-number" inheritAll="false"> |
438 |
<property name="buildNumberFile" location="build.number"/> |
439 |
</ant>
|
440 |
<ant dir="${wms.Dir}" target="batch-build" inheritAll="false"> |
441 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
442 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
443 |
<property name="debug" value="${debug}"/> |
444 |
<property name="debuglevel" value="${debuglevel}"/> |
445 |
<property name="encoding" value="ISO_8859_1"/> |
446 |
</ant>
|
447 |
<condition property="dataloc.Dir" value="${dataloc}" else="voidTarget"> |
448 |
<available file="${dataloc}" type="dir"/> |
449 |
</condition>
|
450 |
<ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false"> |
451 |
<property name="buildNumberFile" location="build.number"/> |
452 |
</ant>
|
453 |
<ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false"> |
454 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
455 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
456 |
<property name="debug" value="${debug}"/> |
457 |
<property name="debuglevel" value="${debuglevel}"/> |
458 |
<property name="encoding" value="ISO_8859_1"/> |
459 |
</ant>
|
460 |
<condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget"> |
461 |
<available file="${geoprocessing}" type="dir"/> |
462 |
</condition>
|
463 |
<ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false"> |
464 |
<property name="buildNumberFile" location="build.number"/> |
465 |
</ant>
|
466 |
<ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false"> |
467 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
468 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
469 |
<property name="debug" value="${debug}"/> |
470 |
<property name="debuglevel" value="${debuglevel}"/> |
471 |
<property name="encoding" value="ISO_8859_1"/> |
472 |
</ant>
|
473 |
<condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget"> |
474 |
<available file="${geoprocessingExtensions}" type="dir"/> |
475 |
</condition>
|
476 |
<ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false"> |
477 |
<property name="buildNumberFile" location="build.number"/> |
478 |
</ant>
|
479 |
<ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false"> |
480 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
481 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
482 |
<property name="debug" value="${debug}"/> |
483 |
<property name="debuglevel" value="${debuglevel}"/> |
484 |
<property name="encoding" value="ISO_8859_1"/> |
485 |
</ant>
|
486 |
<condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget"> |
487 |
<available file="${georeferencing}" type="dir"/> |
488 |
</condition>
|
489 |
<ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false"> |
490 |
<property name="buildNumberFile" location="build.number"/> |
491 |
</ant>
|
492 |
<ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false"> |
493 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
494 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
495 |
<property name="debug" value="${debug}"/> |
496 |
<property name="debuglevel" value="${debuglevel}"/> |
497 |
<property name="encoding" value="ISO_8859_1"/> |
498 |
</ant>
|
499 |
<condition property="rastertools.Dir" value="${rastertools}" else="voidTarget"> |
500 |
<available file="${wfs}" type="dir"/> |
501 |
</condition>
|
502 |
<ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false"> |
503 |
<property name="buildNumberFile" location="build.number"/> |
504 |
</ant>
|
505 |
<ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false"> |
506 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
507 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
508 |
<property name="debug" value="${debug}"/> |
509 |
<property name="debuglevel" value="${debuglevel}"/> |
510 |
<property name="encoding" value="ISO_8859_1"/> |
511 |
</ant>
|
512 |
<condition property="wfs.Dir" value="${wfs}" else="voidTarget"> |
513 |
<available file="${wfs}" type="dir"/> |
514 |
</condition>
|
515 |
<ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false"> |
516 |
<property name="buildNumberFile" location="build.number"/> |
517 |
</ant>
|
518 |
<ant dir="${wfs.Dir}" target="batch-build" inheritAll="false"> |
519 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
520 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
521 |
<property name="debug" value="${debug}"/> |
522 |
<property name="debuglevel" value="${debuglevel}"/> |
523 |
<property name="encoding" value="ISO_8859_1"/> |
524 |
</ant>
|
525 |
<condition property="centerview.Dir" value="${centerview}" else="voidTarget"> |
526 |
<available file="${centerview}" type="dir"/> |
527 |
</condition>
|
528 |
<ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false"> |
529 |
<property name="buildNumberFile" location="build.number"/> |
530 |
</ant>
|
531 |
<ant dir="${centerview.Dir}" target="batch-build" inheritAll="false"> |
532 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
533 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
534 |
<property name="debug" value="${debug}"/> |
535 |
<property name="debuglevel" value="${debuglevel}"/> |
536 |
<property name="encoding" value="ISO_8859_1"/> |
537 |
<property name="installBaseDir" value="${global.installBaseDir}"/> |
538 |
</ant>
|
539 |
<condition property="scripting.Dir" value="${scripting}" else="voidTarget"> |
540 |
<available file="${scripting}" type="dir"/> |
541 |
</condition>
|
542 |
<ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false"> |
543 |
<property name="buildNumberFile" location="build.number"/> |
544 |
</ant>
|
545 |
<ant dir="${scripting.Dir}" target="batch-build" inheritAll="false"> |
546 |
<property name="JavaSourceVersion" value="${JavaSourceVersion}"/> |
547 |
<property name="JavaTargetVersion" value="${JavaTargetVersion}"/> |
548 |
<property name="debug" value="${debug}"/> |
549 |
<property name="debuglevel" value="${debuglevel}"/> |
550 |
<property name="encoding" value="ISO_8859_1"/> |
551 |
</ant>
|
552 |
</target>
|
553 |
|
554 |
<target name="clean-all" |
555 |
depends="clean-base,clean-extensions" |
556 |
description="clean up" /> |
557 |
|
558 |
<target name="clean-base" |
559 |
description="cleans the base components of gvSIG: appgvSIG + libs"> |
560 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
561 |
<ant dir="${utiles}" target="clean"/> |
562 |
<ant dir="${i18n}" target="clean"/> |
563 |
<ant dir="${andami}" target="clean"/> |
564 |
<ant dir="${core}" target="clean"/> |
565 |
<ant dir="${cms}" target="clean"/> |
566 |
<ant dir="${driver}" target="clean"/> |
567 |
<ant dir="${remote}" target="clean"/> |
568 |
<ant dir="${gdbms}" target="clean"/> |
569 |
<ant dir="${fmap}" target="clean"/> |
570 |
<ant dir="${gvSIG}" target="clean"/> |
571 |
<ant dir="${libui}" target="clean"/> |
572 |
</target>
|
573 |
|
574 |
<target name="clean-extensions" |
575 |
description="Clean the extensions"> |
576 |
<condition property="event.Dir" value="${event}" else="voidTarget"> |
577 |
<available file="${event}" type="dir"/> |
578 |
</condition>
|
579 |
<ant dir="${event.Dir}" target="clean" inheritAll="false" /> |
580 |
<condition property="libdwg.Dir" value="${libdwg}" else="voidTarget"> |
581 |
<available file="${libdwg}" type="dir"/> |
582 |
</condition>
|
583 |
<ant dir="${libdwg.Dir}" target="clean" inheritAll="false" /> |
584 |
<condition property="extdwg.Dir" value="${extdwg}" else="voidTarget"> |
585 |
<available file="${extdwg}" type="dir"/> |
586 |
</condition>
|
587 |
<ant dir="${extdwg.Dir}" target="clean" inheritAll="false" /> |
588 |
<condition property="jdbc.Dir" value="${jdbc}" else="voidTarget"> |
589 |
<available file="${jdbc}" type="dir"/> |
590 |
</condition>
|
591 |
<ant dir="${jdbc.Dir}" target="clean" inheritAll="false" /> |
592 |
<condition property="cad.Dir" value="${cad}" else="voidTarget"> |
593 |
<available file="${cad}" type="dir"/> |
594 |
</condition>
|
595 |
<ant dir="${cad.Dir}" target="clean" inheritAll="false" /> |
596 |
<condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
597 |
<available file="${appcatalog}" type="dir"/> |
598 |
</condition>
|
599 |
<ant dir="${appcatalog.Dir}" target="clean" inheritAll="false" /> |
600 |
<condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
601 |
<available file="${catalog}" type="dir"/> |
602 |
</condition>
|
603 |
<ant dir="${catalog.Dir}" target="clean" inheritAll="false" /> |
604 |
<condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
605 |
<available file="${wcs}" type="dir"/> |
606 |
</condition>
|
607 |
<ant dir="${wcs.Dir}" target="clean" inheritAll="false" /> |
608 |
<condition property="wms.Dir" value="${wms}" else="voidTarget"> |
609 |
<available file="${wms}" type="dir"/> |
610 |
</condition>
|
611 |
<ant dir="${wms.Dir}" target="clean" inheritAll="false" /> |
612 |
<condition property="dataloc.Dir" value="${dataloc}" else="voidTarget"> |
613 |
<available file="${dataloc}" type="dir"/> |
614 |
</condition>
|
615 |
<ant dir="${dataloc}" target="clean" inheritAll="false" /> |
616 |
<condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget"> |
617 |
<available file="${geoprocessing}" type="dir"/> |
618 |
</condition>
|
619 |
<ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false" /> |
620 |
<condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget"> |
621 |
<available file="${georeferencing}" type="dir"/> |
622 |
</condition>
|
623 |
<ant dir="${georeferencing.Dir}" target="clean" inheritAll="false" /> |
624 |
<condition property="rastertools.Dir" value="${rastertools}" else="voidTarget"> |
625 |
<available file="${rastertools}" type="dir"/> |
626 |
</condition>
|
627 |
<ant dir="${rastertools.Dir}" target="clean" inheritAll="false" /> |
628 |
<condition property="wfsg.Dir" value="${wfs}" else="voidTarget"> |
629 |
<available file="${wfs}" type="dir"/> |
630 |
</condition>
|
631 |
<ant dir="${wfsg.Dir}" target="clean" inheritAll="false" /> |
632 |
<condition property="scripting.Dir" value="${scripting}" else="voidTarget"> |
633 |
<available file="${scripting}" type="dir"/> |
634 |
</condition>
|
635 |
<ant dir="${scripting.Dir}" target="clean" inheritAll="false" /> |
636 |
<condition property="centerview.Dir" value="${centerview}" else="voidTarget"> |
637 |
<available file="${centerview}" type="dir"/> |
638 |
</condition>
|
639 |
<ant dir="${centerview.Dir}" target="clean" inheritAll="false" /> |
640 |
</target>
|
641 |
|
642 |
<!-- Those targets don't compile, they just generate the jars and copy files to
|
643 |
andami. The compilation is supposed to be done by Eclipse -->
|
644 |
<target name="install-all" |
645 |
depends="install-base,install-extensions" |
646 |
description="Generate jars and copy files to Andami for the whole application (gvSIG+libs+extensions). Compilation is supposed to be automatically done by Eclipse" /> |
647 |
|
648 |
<target name="install-base" |
649 |
description="Generate jars and copy files to Andami for the application (gvSIG+libs). Compilation is supposed to be automatically done by Eclipse" > |
650 |
<ant dir="${utiles}" inheritAll="false" /> |
651 |
<ant dir="${i18n}" inheritAll="false" /> |
652 |
<ant dir="${andami}" inheritAll="false" /> |
653 |
<ant dir="${core}" inheritAll="false" /> |
654 |
<ant dir="${cms}" inheritAll="false" /> |
655 |
<ant dir="${driver}" inheritAll="false" /> |
656 |
<ant dir="${remote}" inheritAll="false" /> |
657 |
<ant dir="${gdbms}" inheritAll="false" /> |
658 |
<ant dir="${fmap}" inheritAll="false" /> |
659 |
<ant dir="${gvSIG}" inheritAll="false" /> |
660 |
<!-- <ant dir="${libui}" inheritAll="false" /> -->
|
661 |
</target>
|
662 |
|
663 |
<target name="install-extensions" depends="base" |
664 |
description="Generate jars and copy files to Andami for the extensions. Compilation is supposed to be automatically done by Eclipse" > |
665 |
<ant dir="${event}" inheritAll="false" /> |
666 |
<ant dir="${libdwg}" inheritAll="false" /> |
667 |
<ant dir="${extdwg}" inheritAll="false" /> |
668 |
<ant dir="${jdbc}" inheritAll="false" /> |
669 |
<ant dir="${cad}" inheritAll="false" /> |
670 |
<ant dir="${appcatalog}" inheritAll="false" /> |
671 |
<ant dir="${catalog}" inheritAll="false" /> |
672 |
<ant dir="${wcs}" inheritAll="false" /> |
673 |
<ant dir="${wms}" inheritAll="false" /> |
674 |
<ant dir="${dataloc}" inheritAll="false" /> |
675 |
<ant dir="${geoprocessing}" inheritAll="false" /> |
676 |
<ant dir="${georeferencing}" inheritAll="false" /> |
677 |
<ant dir="${rastertools}" inheritAll="false" /> |
678 |
<ant dir="${wfs}" inheritAll="false" /> |
679 |
<ant dir="${scripting}" inheritAll="false" /> |
680 |
<ant dir="${centerview}" inheritAll="false" /> |
681 |
</target>
|
682 |
|
683 |
|
684 |
|
685 |
<!-- The download targets are still no working well (or maybe not working at all...) -->
|
686 |
<target name="download" |
687 |
description="Not working yet. Downloads all the projects from the CVS HEAD" |
688 |
depends="download-base, download-extensions"> |
689 |
</target>
|
690 |
|
691 |
<target name="download-base" description="Not working yet. It will download the base projects required to build gvSIG"> |
692 |
<property name="downloadDir" value="tmp-download"/> |
693 |
<mkdir dir="${downloadDir}" /> |
694 |
|
695 |
<!-- andami -->
|
696 |
<cvs
|
697 |
dest="${downloadDir}" |
698 |
package="gvSIG-project/frameworks/_fwAndami" |
699 |
cvsRoot=":extssh:www.gvsig.org:/var/lib/cvs-gvSIG" /> |
700 |
|
701 |
<move todir="${andami}"> |
702 |
<fileset dir="${downloadDir}/gvSIG-project/frameworks/_fwAndami"/> |
703 |
</move>
|
704 |
|
705 |
<!-- we have to do the same for the rest of the projects -->
|
706 |
</target>
|
707 |
|
708 |
<target name="download-extensions" description="Not working yet. It will download the extensions"> |
709 |
</target>
|
710 |
|
711 |
</project>
|
712 |
|