Revision 10187 trunk/applications/appgvSIG/build.xml
build.xml | ||
---|---|---|
4 | 4 |
</description> |
5 | 5 |
<!-- set global properties for this build --> |
6 | 6 |
<!-- <property name="buildDate" value="20041018"/> --> |
7 |
<property name="version" value="1.0 ${eclipse.startTime}"/>
|
|
7 |
<property name="version" value="1.1 ${eclipse.startTime}"/>
|
|
8 | 8 |
<property name="src" location="src"/> |
9 | 9 |
<property name="build" location="bin"/> |
10 | 10 |
<property name="dist" location="dist"/> |
... | ... | |
26 | 26 |
<tstamp/> |
27 | 27 |
<echo> |
28 | 28 |
Compiling ${ant.project.name}...</echo> |
29 |
<mkdir dir="${dist}"/> |
|
29 |
|
|
30 |
<property file="build.number"/> |
|
30 | 31 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout --> |
31 | 32 |
<!-- <buildnumber/> --> |
32 | 33 |
</target> |
... | ... | |
47 | 48 |
<!-- Create the distribution directory --> |
48 | 49 |
</target> |
49 | 50 |
|
51 |
<target name="make-binary-distribution" |
|
52 |
description="Prepare a binary distribution of the application. This increments the build number and then makes a global build" |
|
53 |
depends="buildNumber,build-all"> |
|
54 |
</target> |
|
50 | 55 |
<target name="batch-build" |
51 | 56 |
description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" |
52 | 57 |
depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami"> |
... | ... | |
58 | 63 |
<!-- Create the build directory structure used by compile --> |
59 | 64 |
<mkdir dir="${build}"/> |
60 | 65 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout --> |
61 |
<buildnumber />
|
|
66 |
<!-- <buildnumber />-->
|
|
62 | 67 |
<!-- Compile the Java code from ${src} to ${build} --> |
63 | 68 |
<javac srcdir="${src}" |
64 | 69 |
destdir="${build}" |
... | ... | |
134 | 139 |
<property name="global.installBaseDir" location="${andami}"/> |
135 | 140 |
<property name="exceptions" location="../libExceptions"/> |
136 | 141 |
|
142 |
<target name="buildNumber" |
|
143 |
description="Generates the build.number for the application"> |
|
144 |
<propertyfile |
|
145 |
file="build.number" |
|
146 |
comment="Build Number for ANT. Do not edit!"> |
|
147 |
<entry key="build.number" default="0" type="int" operation="+"/> |
|
148 |
</propertyfile> |
|
149 |
</target> |
|
150 |
|
|
137 | 151 |
<target name="build-all" |
138 | 152 |
depends="debug-no,base,extensions" |
139 | 153 |
description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" /> |
... | ... | |
160 | 174 |
|
161 | 175 |
<target name="base" |
162 | 176 |
description="Builds the application, excluding extensions"> |
177 |
<property file="build.number"/> |
|
163 | 178 |
<!-- allow i18n to be skipped --> |
164 | 179 |
<condition property="i18n.Dir" value="${i18n}" else="voidTarget"> |
165 | 180 |
<available file="${i18n}" type="dir"/> |
... | ... | |
204 | 219 |
<property name="encoding" value="${encoding}"/> |
205 | 220 |
<property name="projectName" value="${libui}" /> |
206 | 221 |
</ant> |
222 |
<ant dir="${core}" target="import-build-number" inheritAll="false"> |
|
223 |
<property name="buildNumberFile" location="build.number"/> |
|
224 |
</ant> |
|
207 | 225 |
<ant dir="${core}" target="batch-build" inheritAll="false"> |
208 | 226 |
<property name="debug" value="${debug}"/> |
209 | 227 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
277 | 295 |
<condition property="event.Dir" value="${event}" else="voidTarget"> |
278 | 296 |
<available file="${event}" type="dir"/> |
279 | 297 |
</condition> |
298 |
<ant dir="${event.Dir}" target="import-build-number" inheritAll="false"> |
|
299 |
<property name="buildNumberFile" location="build.number"/> |
|
300 |
</ant> |
|
280 | 301 |
<ant dir="${event.Dir}" target="batch-build" inheritAll="false"> |
281 | 302 |
<property name="debug" value="${debug}"/> |
282 | 303 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
306 | 327 |
<condition property="jdbc.Dir" value="${jdbc}" else="voidTarget"> |
307 | 328 |
<available file="${jdbc}" type="dir"/> |
308 | 329 |
</condition> |
330 |
<ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false"> |
|
331 |
<property name="buildNumberFile" location="build.number"/> |
|
332 |
</ant> |
|
309 | 333 |
<ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false"> |
310 | 334 |
<property name="debug" value="${debug}"/> |
311 | 335 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
315 | 339 |
<condition property="cad.Dir" value="${cad}" else="voidTarget"> |
316 | 340 |
<available file="${cad}" type="dir"/> |
317 | 341 |
</condition> |
342 |
<ant dir="${cad.Dir}" target="import-build-number" inheritAll="false"> |
|
343 |
<property name="buildNumberFile" location="build.number"/> |
|
344 |
</ant> |
|
318 | 345 |
<ant dir="${cad.Dir}" target="batch-build" inheritAll="false"> |
319 | 346 |
<property name="debug" value="${debug}"/> |
320 | 347 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
324 | 351 |
<condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
325 | 352 |
<available file="${appcatalog}" type="dir"/> |
326 | 353 |
</condition> |
354 |
<ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false"> |
|
355 |
<property name="buildNumberFile" location="build.number"/> |
|
356 |
</ant> |
|
327 | 357 |
<ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false"> |
328 | 358 |
<property name="debug" value="${debug}"/> |
329 | 359 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
333 | 363 |
<condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
334 | 364 |
<available file="${catalog}" type="dir"/> |
335 | 365 |
</condition> |
366 |
<ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false"> |
|
367 |
<property name="buildNumberFile" location="build.number"/> |
|
368 |
</ant> |
|
336 | 369 |
<ant dir="${catalog.Dir}" target="batch-build" inheritAll="false"> |
337 | 370 |
<property name="debug" value="${debug}"/> |
338 | 371 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
342 | 375 |
<condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
343 | 376 |
<available file="${wcs}" type="dir"/> |
344 | 377 |
</condition> |
378 |
<ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false"> |
|
379 |
<property name="buildNumberFile" location="build.number"/> |
|
380 |
</ant> |
|
345 | 381 |
<ant dir="${wcs.Dir}" target="batch-build" inheritAll="false"> |
346 | 382 |
<property name="debug" value="${debug}"/> |
347 | 383 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
351 | 387 |
<condition property="wms.Dir" value="${wms}" else="voidTarget"> |
352 | 388 |
<available file="${wms}" type="dir"/> |
353 | 389 |
</condition> |
390 |
<ant dir="${wms.Dir}" target="import-build-number" inheritAll="false"> |
|
391 |
<property name="buildNumberFile" location="build.number"/> |
|
392 |
</ant> |
|
354 | 393 |
<ant dir="${wms.Dir}" target="batch-build" inheritAll="false"> |
355 | 394 |
<property name="debug" value="${debug}"/> |
356 | 395 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
360 | 399 |
<condition property="dataloc.Dir" value="${dataloc}" else="voidTarget"> |
361 | 400 |
<available file="${dataloc}" type="dir"/> |
362 | 401 |
</condition> |
402 |
<ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false"> |
|
403 |
<property name="buildNumberFile" location="build.number"/> |
|
404 |
</ant> |
|
363 | 405 |
<ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false"> |
364 | 406 |
<property name="debug" value="${debug}"/> |
365 | 407 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
369 | 411 |
<condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget"> |
370 | 412 |
<available file="${geoprocessing}" type="dir"/> |
371 | 413 |
</condition> |
414 |
<ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false"> |
|
415 |
<property name="buildNumberFile" location="build.number"/> |
|
416 |
</ant> |
|
372 | 417 |
<ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false"> |
373 | 418 |
<property name="debug" value="${debug}"/> |
374 | 419 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
378 | 423 |
<condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget"> |
379 | 424 |
<available file="${geoprocessingExtensions}" type="dir"/> |
380 | 425 |
</condition> |
426 |
<ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false"> |
|
427 |
<property name="buildNumberFile" location="build.number"/> |
|
428 |
</ant> |
|
381 | 429 |
<ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false"> |
382 | 430 |
<property name="debug" value="${debug}"/> |
383 | 431 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
387 | 435 |
<condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget"> |
388 | 436 |
<available file="${georeferencing}" type="dir"/> |
389 | 437 |
</condition> |
438 |
<ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false"> |
|
439 |
<property name="buildNumberFile" location="build.number"/> |
|
440 |
</ant> |
|
390 | 441 |
<ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false"> |
391 | 442 |
<property name="debug" value="${debug}"/> |
392 | 443 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
396 | 447 |
<condition property="rastertools.Dir" value="${rastertools}" else="voidTarget"> |
397 | 448 |
<available file="${wfs}" type="dir"/> |
398 | 449 |
</condition> |
450 |
<ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false"> |
|
451 |
<property name="buildNumberFile" location="build.number"/> |
|
452 |
</ant> |
|
399 | 453 |
<ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false"> |
400 | 454 |
<property name="debug" value="${debug}"/> |
401 | 455 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
405 | 459 |
<condition property="wfs.Dir" value="${wfs}" else="voidTarget"> |
406 | 460 |
<available file="${wfs}" type="dir"/> |
407 | 461 |
</condition> |
462 |
<ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false"> |
|
463 |
<property name="buildNumberFile" location="build.number"/> |
|
464 |
</ant> |
|
408 | 465 |
<ant dir="${wfs.Dir}" target="batch-build" inheritAll="false"> |
409 | 466 |
<property name="debug" value="${debug}"/> |
410 | 467 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
414 | 471 |
<condition property="centerview.Dir" value="${centerview}" else="voidTarget"> |
415 | 472 |
<available file="${centerview}" type="dir"/> |
416 | 473 |
</condition> |
474 |
<ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false"> |
|
475 |
<property name="buildNumberFile" location="build.number"/> |
|
476 |
</ant> |
|
417 | 477 |
<ant dir="${centerview.Dir}" target="batch-build" inheritAll="false"> |
418 | 478 |
<property name="debug" value="${debug}"/> |
419 | 479 |
<property name="debuglevel" value="${debuglevel}"/> |
... | ... | |
424 | 484 |
<condition property="scripting.Dir" value="${scripting}" else="voidTarget"> |
425 | 485 |
<available file="${scripting}" type="dir"/> |
426 | 486 |
</condition> |
487 |
<ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false"> |
|
488 |
<property name="buildNumberFile" location="build.number"/> |
|
489 |
</ant> |
|
427 | 490 |
<ant dir="${scripting.Dir}" target="batch-build" inheritAll="false"> |
428 | 491 |
<property name="debug" value="${debug}"/> |
429 | 492 |
<property name="debuglevel" value="${debuglevel}"/> |
Also available in: Unified diff