1 |
|
<project name="Generar extension en MDIAPP" default="dist" basedir=".">
|
|
1 |
<project name="appgvSIG" default="dist" basedir=".">
|
2 |
2 |
<description>
|
3 |
3 |
Instala el plugin
|
4 |
4 |
</description>
|
... | ... | |
23 |
23 |
<target name="init">
|
24 |
24 |
<!-- Create the time stamp -->
|
25 |
25 |
<tstamp/>
|
|
26 |
<echo>
|
|
27 |
Compiling ${ant.project.name}...</echo>
|
26 |
28 |
<!-- Create the build directory structure used by compile -->
|
27 |
29 |
<mkdir dir="${build}"/>
|
28 |
30 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
... | ... | |
102 |
104 |
|
103 |
105 |
<target name="batch-build"
|
104 |
106 |
description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute"
|
105 |
|
depends="get-fmap-libs,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
|
|
107 |
depends="init,get-fmap-libs,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
|
106 |
108 |
</target>
|
107 |
109 |
|
108 |
110 |
<target name="compile" description="compile the source">
|
... | ... | |
183 |
185 |
<property name="remote" location="../libRemoteServices"/>
|
184 |
186 |
<property name="gdbms" location="../libGDBMS"/>
|
185 |
187 |
<property name="i18n" location="../libInternationalization"/>
|
186 |
|
<property name="appcatalog" location="../appCatalogYNomenclatorClient"/>
|
187 |
|
<property name="catalog" location="../extCatalogYNomenclator"/>
|
188 |
|
<property name="dataloc" location="../extDataLocator"/>
|
189 |
|
<property name="event" location="../extAddEventTheme"/>
|
190 |
|
<property name="libdwg" location="../libDwg"/>
|
191 |
|
<property name="extdwg" location="../extDwg"/>
|
192 |
|
<property name="cad" location="../extCAD"/>
|
193 |
|
<property name="geoprocessing" location="../extGeoProcessing"/>
|
194 |
|
<property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
|
195 |
|
<property name="georeferencing" location="../extGeoreferencing"/>
|
196 |
|
<property name="jdbc" location="../extJDBC"/>
|
197 |
|
<property name="rastertools" location="../extRasterTools"/>
|
198 |
|
<property name="wcs" location="../extWCS"/>
|
199 |
|
<property name="wfs" location="../extWFS2"/>
|
200 |
|
<property name="wms" location="../extWMS"/>
|
201 |
|
<property name="scripting" location="../extScripting"/>
|
202 |
|
<property name="centerview" location="../extCenterViewToPoint"/>
|
203 |
|
<property name="libui" location="../libUI"/>
|
204 |
188 |
<property name="global.installBaseDir" location="${andami}"/>
|
205 |
189 |
|
206 |
190 |
<target name="build-all"
|
... | ... | |
235 |
219 |
<property name="debuglevel" value="${debuglevel}"/>
|
236 |
220 |
<property name="encoding" value="ISO_8859_1"/>
|
237 |
221 |
</ant>
|
238 |
|
<ant dir="${libui}" target="batch-build" inheritAll="false">
|
|
222 |
<ant dir="${andami}" target="batch-build" inheritAll="false">
|
239 |
223 |
<property name="debug" value="${debug}"/>
|
240 |
224 |
<property name="debuglevel" value="${debuglevel}"/>
|
241 |
|
<property name="installBaseDir" value="${global.installBaseDir}"/>
|
242 |
225 |
<property name="encoding" value="ISO_8859_1"/>
|
243 |
226 |
</ant>
|
244 |
|
<ant dir="${andami}" target="batch-build" inheritAll="false">
|
|
227 |
<ant dir="${libui}" target="batch-build" inheritAll="false">
|
245 |
228 |
<property name="debug" value="${debug}"/>
|
246 |
229 |
<property name="debuglevel" value="${debuglevel}"/>
|
|
230 |
<property name="installBaseDir" value="${global.installBaseDir}"/>
|
247 |
231 |
<property name="encoding" value="ISO_8859_1"/>
|
248 |
232 |
</ant>
|
249 |
233 |
<ant dir="${core}" target="batch-build" inheritAll="false">
|
... | ... | |
283 |
267 |
</ant>
|
284 |
268 |
</target>
|
285 |
269 |
|
|
270 |
<property name="appcatalog" location="../appCatalogYNomenclatorClient"/>
|
|
271 |
<property name="catalog" location="../extCatalogYNomenclator"/>
|
|
272 |
<property name="dataloc" location="../extDataLocator"/>
|
|
273 |
<property name="event" location="../extAddEventTheme"/>
|
|
274 |
<property name="libdwg" location="../libDwg"/>
|
|
275 |
<property name="extdwg" location="../extDwg"/>
|
|
276 |
<property name="cad" location="../extCAD"/>
|
|
277 |
<property name="geoprocessing" location="../extGeoProcessing"/>
|
|
278 |
<property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
|
|
279 |
<property name="georeferencing" location="../extGeoreferencing"/>
|
|
280 |
<property name="jdbc" location="../extJDBC"/>
|
|
281 |
<property name="rastertools" location="../extRasterTools"/>
|
|
282 |
<property name="wcs" location="../extWCS"/>
|
|
283 |
<property name="wfs" location="../extWFS2"/>
|
|
284 |
<property name="wms" location="../extWMS"/>
|
|
285 |
<property name="scripting" location="../extScripting"/>
|
|
286 |
<property name="centerview" location="../extCenterViewToPoint"/>
|
|
287 |
<property name="libui" location="../libUI"/>
|
|
288 |
|
|
289 |
|
286 |
290 |
<target name="extensions" depends="base">
|
287 |
|
<ant dir="${event}" target="batch-build" inheritAll="false">
|
|
291 |
<condition property="event.Dir" value="${event}" else="voidTarget">
|
|
292 |
<available file="${event}" type="dir"/>
|
|
293 |
</condition>
|
|
294 |
<ant dir="${event.Dir}" target="batch-build" inheritAll="false">
|
288 |
295 |
<property name="debug" value="${debug}"/>
|
289 |
296 |
<property name="debuglevel" value="${debuglevel}"/>
|
290 |
297 |
<property name="encoding" value="ISO_8859_1"/>
|
291 |
298 |
</ant>
|
292 |
|
<ant dir="${libdwg}" target="batch-build" inheritAll="false">
|
|
299 |
<condition property="libdwg.Dir" value="${libdwg}" else="voidTarget">
|
|
300 |
<available file="${libdwg}" type="dir"/>
|
|
301 |
</condition>
|
|
302 |
<ant dir="${libdwg.Dir}" target="batch-build" inheritAll="false">
|
293 |
303 |
<property name="debug" value="${debug}"/>
|
294 |
304 |
<property name="debuglevel" value="${debuglevel}"/>
|
295 |
305 |
<property name="encoding" value="ISO_8859_1"/>
|
296 |
306 |
</ant>
|
297 |
|
<ant dir="${extdwg}" target="batch-build" inheritAll="false">
|
|
307 |
<condition property="extdwg.Dir" value="${extdwg}" else="voidTarget">
|
|
308 |
<available file="${extdwg}" type="dir"/>
|
|
309 |
</condition>
|
|
310 |
<ant dir="${extdwg.Dir}" target="batch-build" inheritAll="false">
|
298 |
311 |
<property name="debug" value="${debug}"/>
|
299 |
312 |
<property name="debuglevel" value="${debuglevel}"/>
|
300 |
313 |
<property name="encoding" value="ISO_8859_1"/>
|
301 |
314 |
</ant>
|
302 |
|
<ant dir="${jdbc}" target="batch-build" inheritAll="false">
|
|
315 |
<condition property="jdbc.Dir" value="${jdbc}" else="voidTarget">
|
|
316 |
<available file="${jdbc}" type="dir"/>
|
|
317 |
</condition>
|
|
318 |
<ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false">
|
303 |
319 |
<property name="debug" value="${debug}"/>
|
304 |
320 |
<property name="debuglevel" value="${debuglevel}"/>
|
305 |
321 |
<property name="encoding" value="ISO_8859_1"/>
|
306 |
322 |
</ant>
|
307 |
|
<ant dir="${cad}" target="batch-build" inheritAll="false">
|
|
323 |
<condition property="cad.Dir" value="${cad}" else="voidTarget">
|
|
324 |
<available file="${cad}" type="dir"/>
|
|
325 |
</condition>
|
|
326 |
<!-- Don't compile extCAD because it doesn't correctly compile from the command line
|
|
327 |
<ant dir="${cad.Dir}" target="batch-build" inheritAll="false">
|
308 |
328 |
<property name="debug" value="${debug}"/>
|
309 |
329 |
<property name="debuglevel" value="${debuglevel}"/>
|
310 |
330 |
<property name="encoding" value="ISO_8859_1"/>
|
311 |
|
</ant>
|
312 |
|
<ant dir="${appcatalog}" target="batch-build" inheritAll="false">
|
|
331 |
</ant> -->
|
|
332 |
<condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget">
|
|
333 |
<available file="${appcatalog}" type="dir"/>
|
|
334 |
</condition>
|
|
335 |
<ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false">
|
313 |
336 |
<property name="debug" value="${debug}"/>
|
314 |
337 |
<property name="debuglevel" value="${debuglevel}"/>
|
315 |
338 |
<property name="encoding" value="ISO_8859_1"/>
|
316 |
339 |
</ant>
|
317 |
|
<ant dir="${catalog}" target="batch-build" inheritAll="false">
|
|
340 |
<condition property="catalog.Dir" value="${catalog}" else="voidTarget">
|
|
341 |
<available file="${catalog}" type="dir"/>
|
|
342 |
</condition>
|
|
343 |
<ant dir="${catalog.Dir}" target="batch-build" inheritAll="false">
|
318 |
344 |
<property name="debug" value="${debug}"/>
|
319 |
345 |
<property name="debuglevel" value="${debuglevel}"/>
|
320 |
346 |
<property name="encoding" value="ISO_8859_1"/>
|
321 |
347 |
</ant>
|
322 |
|
<ant dir="${wcs}" target="batch-build" inheritAll="false">
|
|
348 |
<condition property="wcs.Dir" value="${wcs}" else="voidTarget">
|
|
349 |
<available file="${wcs}" type="dir"/>
|
|
350 |
</condition>
|
|
351 |
<ant dir="${wcs.Dir}" target="batch-build" inheritAll="false">
|
323 |
352 |
<property name="debug" value="${debug}"/>
|
324 |
353 |
<property name="debuglevel" value="${debuglevel}"/>
|
325 |
354 |
<property name="encoding" value="ISO_8859_1"/>
|
326 |
355 |
</ant>
|
327 |
|
<ant dir="${wms}" target="batch-build" inheritAll="false">
|
|
356 |
<condition property="wms.Dir" value="${wms}" else="voidTarget">
|
|
357 |
<available file="${wms}" type="dir"/>
|
|
358 |
</condition>
|
|
359 |
<ant dir="${wms.Dir}" target="batch-build" inheritAll="false">
|
328 |
360 |
<property name="debug" value="${debug}"/>
|
329 |
361 |
<property name="debuglevel" value="${debuglevel}"/>
|
330 |
362 |
<property name="encoding" value="ISO_8859_1"/>
|
331 |
363 |
</ant>
|
332 |
|
<ant dir="${dataloc}" target="batch-build" inheritAll="false">
|
|
364 |
<condition property="dataloc.Dir" value="${dataloc}" else="voidTarget">
|
|
365 |
<available file="${dataloc}" type="dir"/>
|
|
366 |
</condition>
|
|
367 |
<ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false">
|
333 |
368 |
<property name="debug" value="${debug}"/>
|
334 |
369 |
<property name="debuglevel" value="${debuglevel}"/>
|
335 |
370 |
<property name="encoding" value="ISO_8859_1"/>
|
336 |
371 |
</ant>
|
337 |
|
<ant dir="${geoprocessing}" target="batch-build" inheritAll="false">
|
|
372 |
<condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget">
|
|
373 |
<available file="${geoprocessing}" type="dir"/>
|
|
374 |
</condition>
|
|
375 |
<ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false">
|
338 |
376 |
<property name="debug" value="${debug}"/>
|
339 |
377 |
<property name="debuglevel" value="${debuglevel}"/>
|
340 |
378 |
<property name="encoding" value="ISO_8859_1"/>
|
341 |
379 |
</ant>
|
342 |
|
<ant dir="${geoprocessingExtensions}" target="batch-build" inheritAll="false">
|
|
380 |
<condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget">
|
|
381 |
<available file="${geoprocessingExtensions}" type="dir"/>
|
|
382 |
</condition>
|
|
383 |
<ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false">
|
343 |
384 |
<property name="debug" value="${debug}"/>
|
344 |
385 |
<property name="debuglevel" value="${debuglevel}"/>
|
345 |
386 |
<property name="encoding" value="ISO_8859_1"/>
|
346 |
387 |
</ant>
|
347 |
|
<ant dir="${georeferencing}" target="batch-build" inheritAll="false">
|
|
388 |
<condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget">
|
|
389 |
<available file="${georeferencing}" type="dir"/>
|
|
390 |
</condition>
|
|
391 |
<ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false">
|
348 |
392 |
<property name="debug" value="${debug}"/>
|
349 |
393 |
<property name="debuglevel" value="${debuglevel}"/>
|
350 |
394 |
<property name="encoding" value="ISO_8859_1"/>
|
351 |
395 |
</ant>
|
352 |
|
<ant dir="${rastertools}" target="batch-build" inheritAll="false">
|
|
396 |
<condition property="rastertools.Dir" value="${wfs}" else="voidTarget">
|
|
397 |
<available file="${wfs}" type="dir"/>
|
|
398 |
</condition>
|
|
399 |
<ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false">
|
353 |
400 |
<property name="debug" value="${debug}"/>
|
354 |
401 |
<property name="debuglevel" value="${debuglevel}"/>
|
355 |
402 |
<property name="encoding" value="ISO_8859_1"/>
|
356 |
403 |
</ant>
|
357 |
|
<ant dir="${wfs}" target="batch-build" inheritAll="false">
|
|
404 |
<condition property="wfs.Dir" value="${wfs}" else="voidTarget">
|
|
405 |
<available file="${wfs}" type="dir"/>
|
|
406 |
</condition>
|
|
407 |
<ant dir="${wfs.Dir}" target="batch-build" inheritAll="false">
|
358 |
408 |
<property name="debug" value="${debug}"/>
|
359 |
409 |
<property name="debuglevel" value="${debuglevel}"/>
|
360 |
410 |
<property name="encoding" value="ISO_8859_1"/>
|
361 |
411 |
</ant>
|
362 |
|
<ant dir="${centerview}" target="batch-build" inheritAll="false">
|
|
412 |
<condition property="centerview.Dir" value="${centerview}" else="voidTarget">
|
|
413 |
<available file="${centerview}" type="dir"/>
|
|
414 |
</condition>
|
|
415 |
<ant dir="${centerview.Dir}" target="batch-build" inheritAll="false">
|
363 |
416 |
<property name="debug" value="${debug}"/>
|
364 |
417 |
<property name="debuglevel" value="${debuglevel}"/>
|
365 |
418 |
<property name="encoding" value="ISO_8859_1"/>
|
366 |
419 |
<property name="installBaseDir" value="${global.installBaseDir}"/>
|
367 |
420 |
</ant>
|
368 |
|
<ant dir="${scripting}" target="batch-build" inheritAll="false">
|
|
421 |
<condition property="scripting.Dir" value="${scripting}" else="voidTarget">
|
|
422 |
<available file="${scripting}" type="dir"/>
|
|
423 |
</condition>
|
|
424 |
<ant dir="${scripting.Dir}" target="batch-build" inheritAll="false">
|
369 |
425 |
<property name="debug" value="${debug}"/>
|
370 |
426 |
<property name="debuglevel" value="${debuglevel}"/>
|
371 |
427 |
<property name="encoding" value="ISO_8859_1"/>
|
372 |
|
<property name="installBaseDir" value="${global.installBaseDir}"/>
|
373 |
428 |
</ant>
|
374 |
429 |
</target>
|
375 |
430 |
|
... | ... | |
377 |
432 |
depends="clean-base,clean-extensions"
|
378 |
433 |
description="clean up" />
|
379 |
434 |
|
380 |
|
<target name="clean-base">
|
|
435 |
<target name="clean-base"
|
|
436 |
description="cleans the base components of gvSIG: appgvSIG + libs">
|
381 |
437 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
382 |
438 |
<ant dir="${utiles}" target="clean"/>
|
383 |
439 |
<ant dir="${i18n}" target="clean"/>
|
... | ... | |
392 |
448 |
<ant dir="${libui}" target="clean"/>
|
393 |
449 |
</target>
|
394 |
450 |
|
395 |
|
<target name="clean-extensions">
|
396 |
|
<ant dir="${event}" target="clean" inheritAll="false" />
|
397 |
|
<ant dir="${libdwg}" target="clean" inheritAll="false" />
|
398 |
|
<ant dir="${extdwg}" target="clean" inheritAll="false" />
|
399 |
|
<ant dir="${jdbc}" target="clean" inheritAll="false" />
|
400 |
|
<ant dir="${cad}" target="clean" inheritAll="false" />
|
401 |
|
<ant dir="${appcatalog}" target="clean" inheritAll="false" />
|
402 |
|
<ant dir="${catalog}" target="clean" inheritAll="false" />
|
403 |
|
<ant dir="${wcs}" target="clean" inheritAll="false" />
|
404 |
|
<ant dir="${wms}" target="clean" inheritAll="false" />
|
|
451 |
<target name="clean-extensions"
|
|
452 |
description="Clean the extensions">
|
|
453 |
<condition property="event.Dir" value="${event}" else="voidTarget">
|
|
454 |
<available file="${event}" type="dir"/>
|
|
455 |
</condition>
|
|
456 |
<ant dir="${event.Dir}" target="clean" inheritAll="false" />
|
|
457 |
<condition property="libdwg.Dir" value="${libdwg}" else="voidTarget">
|
|
458 |
<available file="${libdwg}" type="dir"/>
|
|
459 |
</condition>
|
|
460 |
<ant dir="${libdwg.Dir}" target="clean" inheritAll="false" />
|
|
461 |
<condition property="extdwg.Dir" value="${extdwg}" else="voidTarget">
|
|
462 |
<available file="${extdwg}" type="dir"/>
|
|
463 |
</condition>
|
|
464 |
<ant dir="${extdwg.Dir}" target="clean" inheritAll="false" />
|
|
465 |
<condition property="jdbc.Dir" value="${jdbc}" else="voidTarget">
|
|
466 |
<available file="${jdbc}" type="dir"/>
|
|
467 |
</condition>
|
|
468 |
<ant dir="${jdbc.Dir}" target="clean" inheritAll="false" />
|
|
469 |
<condition property="cad.Dir" value="${cad}" else="voidTarget">
|
|
470 |
<available file="${cad}" type="dir"/>
|
|
471 |
</condition>
|
|
472 |
<ant dir="${cad.Dir}" target="clean" inheritAll="false" />
|
|
473 |
<condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget">
|
|
474 |
<available file="${appcatalog}" type="dir"/>
|
|
475 |
</condition>
|
|
476 |
<ant dir="${appcatalog.Dir}" target="clean" inheritAll="false" />
|
|
477 |
<condition property="catalog.Dir" value="${catalog}" else="voidTarget">
|
|
478 |
<available file="${catalog}" type="dir"/>
|
|
479 |
</condition>
|
|
480 |
<ant dir="${catalog.Dir}" target="clean" inheritAll="false" />
|
|
481 |
<condition property="wcs.Dir" value="${wcs}" else="voidTarget">
|
|
482 |
<available file="${wcs}" type="dir"/>
|
|
483 |
</condition>
|
|
484 |
<ant dir="${wcs.Dir}" target="clean" inheritAll="false" />
|
|
485 |
<condition property="wms.Dir" value="${wms}" else="voidTarget">
|
|
486 |
<available file="${wms}" type="dir"/>
|
|
487 |
</condition>
|
|
488 |
<ant dir="${wms.Dir}" target="clean" inheritAll="false" />
|
|
489 |
<condition property="dataloc.Dir" value="${dataloc}" else="voidTarget">
|
|
490 |
<available file="${dataloc}" type="dir"/>
|
|
491 |
</condition>
|
405 |
492 |
<ant dir="${dataloc}" target="clean" inheritAll="false" />
|
406 |
|
<ant dir="${geoprocessing}" target="clean" inheritAll="false" />
|
407 |
|
<ant dir="${georeferencing}" target="clean" inheritAll="false" />
|
408 |
|
<ant dir="${rastertools}" target="clean" inheritAll="false" />
|
409 |
|
<ant dir="${wfs}" target="clean" inheritAll="false" />
|
410 |
|
<ant dir="${scripting}" target="clean" inheritAll="false" />
|
411 |
|
<ant dir="${centerview}" target="clean" inheritAll="false" />
|
|
493 |
<condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget">
|
|
494 |
<available file="${geoprocessing}" type="dir"/>
|
|
495 |
</condition>
|
|
496 |
<ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false" />
|
|
497 |
<condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget">
|
|
498 |
<available file="${georeferencing}" type="dir"/>
|
|
499 |
</condition>
|
|
500 |
<ant dir="${georeferencing.Dir}" target="clean" inheritAll="false" />
|
|
501 |
<condition property="rastertools.Dir" value="${rastertools}" else="voidTarget">
|
|
502 |
<available file="${rastertools}" type="dir"/>
|
|
503 |
</condition>
|
|
504 |
<ant dir="${rastertools.Dir}" target="clean" inheritAll="false" />
|
|
505 |
<condition property="wfsg.Dir" value="${wfs}" else="voidTarget">
|
|
506 |
<available file="${wfs}" type="dir"/>
|
|
507 |
</condition>
|
|
508 |
<ant dir="${wfsg.Dir}" target="clean" inheritAll="false" />
|
|
509 |
<condition property="scripting.Dir" value="${scripting}" else="voidTarget">
|
|
510 |
<available file="${scripting}" type="dir"/>
|
|
511 |
</condition>
|
|
512 |
<ant dir="${scripting.Dir}" target="clean" inheritAll="false" />
|
|
513 |
<condition property="centerview.Dir" value="${centerview}" else="voidTarget">
|
|
514 |
<available file="${centerview}" type="dir"/>
|
|
515 |
</condition>
|
|
516 |
<ant dir="${centerview.Dir}" target="clean" inheritAll="false" />
|
412 |
517 |
</target>
|
413 |
518 |
|
414 |
519 |
<!-- Those targets don't compile, they just generate the jars and copy files to
|