Statistics
| Revision:

svn-gvsig-desktop / trunk / applications / appgvSIG / build.xml @ 13180

History | View | Annotate | Download (24.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.1 ${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

    
21
        <!--<import file="compile-classpath.xml"/>
22
        <import file="../_fwAndami/compile-classpath.xml"/>
23
        <import file="../libFMap/compile-classpath.xml"/>-->
24
        <import file="../binaries/ant/utils.xml"/>
25
        <property name="build-doc" value="build-doc"/>
26
        <property name="JavaSourceVersion" value="1.5"/>
27
        <property name="JavaTargetVersion" value="1.5"/>
28
        <property name="encoding" value="ISO_8859_1"/>
29

    
30
        <target name="init">
31
                <!-- Create the time stamp -->
32
                <tstamp/>
33
                <echo>
34
                        Compiling ${ant.project.name}...</echo>
35

    
36
                <property file="build.number"/>
37
                <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
38
                <!-- <buildnumber/> -->
39
        </target>
40

    
41
        <target name="build-doc" depends="" description="Genera un zip con la documentación">
42
                <javadoc
43
                        packagenames="com.iver.cit.gvsig.*"
44
                        sourcepath="src"
45
                        defaultexcludes="yes"
46
                        destdir="${build-doc}/gvSIG-api"
47
                        windowtitle="gvSIG API">
48
                </javadoc>
49
        </target>
50

    
51
        <target name="dist"
52
                                depends="init,create-jar,copy-libs,copy-data-files,move-to-andami"
53
                                description="Generate the distribution of the gvSIG plugin. To build just the appgvSIG project from Eclipse " >
54
                <!-- Create the distribution directory -->
55
        </target>
56

    
57
        <target name="make-binary-distribution"
58
            description="Prepare a binary distribution of the application. This increments the build number and then makes a global build"
59
            depends="clean_andami_gvSIG,buildNumber,build-all">
60
    </target>
61

    
62
    <target name="clean_andami_gvSIG"
63
            description="clean up the gvSIG andami deploy">
64
        <delete dir="${andami}/gvSIG" failonerror="false"/>
65
    </target>
66

    
67
        <target name="batch-build"
68
                        description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute"
69
                        depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
70
        </target>
71

    
72
        <target name="compile" description="compile the source">
73
                <!-- Create the time stamp -->
74
                <tstamp/>
75
                <!-- Create the build directory structure used by compile -->
76
                <mkdir dir="${build}"/>
77
                <!-- Compile the Java code from ${src} to ${build} -->
78
                <loadEclipseClasspath project="${basedir}"/>
79
                <defaultJavac
80
                        excludes="com/iver/cit/gvsig/test/**"/>
81
                <!--
82
                <javac  srcdir="${src}"
83
                        destdir="${build}"
84
                        source="${JavaSourceVersion}"
85
                        target="${JavaTargetVersion}"
86
                        debug="${debug}"
87
                        debuglevel="${debuglevel}"
88
                        excludes="com/iver/cit/gvsig/test/**"
89
                        encoding="${encoding}"
90
                        classpath="${eclipseClasspath}"/>
91
                        -->
92

    
93
        </target>
94

    
95
        <target name="create-jar" description="Creates the jar file">
96
                <mkdir dir="${dist}/lib"/>
97
                <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
98
        </target>
99

    
100
        <target name="copy-libs">
101
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
102
                <copy todir="${dist}/lib">
103
                        <fileset dir="./lib" includes="*.jar,*.zip"/>
104
                </copy>
105
                <ant dir="${fmap}" target="batch-build" inheritAll="false">
106
                        <property name="debug" value="${debug}"/>
107
                        <property name="debuglevel" value="${debuglevel}"/>
108
                        <property name="encoding" value="ISO_8859_1"/>
109
                </ant>
110
                <copy todir="${dist}/lib">
111
                        <fileset dir="${fmapdir}/dist/lib/" includes="*.jar,*.zip"/>
112
                </copy>
113

    
114
        </target>
115

    
116
        <target name="copy-data-files">
117
        <copy todir="${dist}">
118
                <fileset dir="config" includes="*" />
119
        </copy>
120
                <copy file="build.number" todir="${dist}"/>
121
                <copy todir="${dist}/images">
122
                        <fileset dir="images/" includes="*"/>
123
                </copy>
124
                <copy todir="${dist}/northimages">
125
                        <fileset dir="northimages/" includes="*"/>
126
                </copy>
127
    </target>
128

    
129
        <target name="move-to-andami" description="Moves the build directory to andami">
130
                <move todir="${extensionDir}/${plugin}/">
131
                        <fileset dir="${dist}" includes="**/**"/>
132
                </move>
133
        </target>
134

    
135
        <target name="clean"
136
                        description="clean up" >
137
                <!-- Delete the ${build} and ${dist} directory trees -->
138
                <delete dir="${build}"/>
139
<!--                <delete dir="${dist}"/> -->
140
        </target>
141

    
142

    
143
        <!-- the global build starts here -->
144
        <property name="i18n" location="../libInternationalization"/>
145
        <property name="utiles" location="../libIverUtiles"/>
146
        <property name="libui" location="../libUIComponent"/>
147
        <property name="exceptions" location="../libExceptions"/>
148
        <property name="andami" location="../_fwAndami"/>
149
        <property name="core" location="../libCorePlugin"/>
150
        <property name="projections" location="../libProjection"/>
151
        <property name="libraster" location="../libRaster"/>
152
        <property name="libdxf" location="../libDXF"/>
153
        <property name="libjcrs" location="../libJCRS"/>
154
        <property name="driver" location="../libDriverManager"/>
155
        <property name="remote" location="../libRemoteServices"/>
156
        <property name="gdbms" location="../libGDBMS"/>
157
        <property name="fmap" location="../libFMap"/>
158
        <property name="gvSIG" location="../appgvSIG"/>
159
        <property name="extjcrs" location="../extJCRS"/>
160
        <property name="mandatoryProjets" value="${andami},${core},${fmap},${gvSIG}"/>
161

    
162

    
163
        <property name="global.installBaseDir" location="${andami}"/>
164

    
165

    
166
        <target name="buildNumber"
167
                                description="Generates the build.number for the application">
168
                <propertyfile
169
                                file="build.number"
170
                                comment="Build Number for ANT. Do not edit!">
171
                        <entry  key="build.number" default="0" type="int" operation="+"/>
172
                </propertyfile>
173
        </target>
174

    
175
        <target name="build-all"
176
                                depends="debug-no,base,extensions"
177
                                description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" />
178

    
179
        <target name="eclipse-build-all"
180
                                        depends="debug-yes,base,extensions"
181
                                        description="Builds the application, including extensions, producing debug info" />
182

    
183
        <target name="debug-yes">
184
                <property name="debug" value="on"/>
185
                <property name="debuglevel" value="lines, vars"/>
186
        </target>
187

    
188
        <target name="debug-no">
189
                <property name="debug" value="off"/>
190
        </target>
191

    
192
        <target name="eclipse-base" depends="debug-yes,base" />
193
        <target name="eclipse-extensions" depends="debug-yes,base,extensions" />
194

    
195
        <property name="encoding" value="ISO_8859_1" />
196
        <property name="sourceVersion" value="1.5" />
197
        <property name="targetVersion" value="1.5" />
198

    
199
        <!--
200
        <presetdef name="batch-build-library">
201
                <antcall target="batch-build-library">
202
                        <param name="bb-library.name" value="${bb-library.name}"/>
203
                </antcall>
204
        </presetdef>
205
        -->
206

    
207
        <target name="batch-build-library">
208
                <condition property="bb-library.dir_alternative" value="${bb-library.name}" else="scripts/voidTarget">
209
                        <contains string="${mandatoryProjets}" substring="${bb-library.name}"/>
210
                </condition>
211
                <condition property="bb-library.dir" value="${bb-library.name}" else="${bb-library.dir_alternative}">
212
                        <available file="${bb-library.name}" type="dir"/>
213
                </condition>
214
                <ant dir="${bb-library.dir}" target="batch-build" inheritAll="false">
215
                        <property name="debug" value="${debug}"/>
216
                        <property name="debuglevel" value="${debuglevel}"/>
217
                        <property name="encoding" value="${encoding}"/>
218
                        <property name="projectName" value="${bb-library.name}" />
219
                        <property name="encoding" value="${encoding}"/>
220
                        <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
221
                        <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
222
                </ant>
223
        </target>
224

    
225

    
226
        <target name="base"
227
                        description="Builds the application, excluding extensions">
228
                <property file="build.number"/>
229

    
230
                <antcall target="batch-build-library">
231
                        <param name="bb-library.name" value="${i18n}"/>
232
                </antcall>
233

    
234
                <antcall target="batch-build-library">
235
                        <param name="bb-library.name" value="${utiles}"/>
236
                </antcall>
237

    
238
                <condition property="libui.Dir" value="${libui}" else="scripts/voidTarget">
239
                        <available file="${libui}" type="dir"/>
240
                </condition>
241
                <ant dir="${libui.Dir}" target="batch-build" inheritAll="false">
242
                        <property name="debug" value="${debug}"/>
243
                        <property name="debuglevel" value="${debuglevel}"/>
244
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
245
                        <property name="encoding" value="${encoding}"/>
246
                        <property name="projectName" value="${libui}" />
247
                        <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
248
                        <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
249
                </ant>
250

    
251
                <antcall target="batch-build-library">
252
                        <param name="bb-library.name" value="${exceptions}"/>
253
                </antcall>
254

    
255
                <antcall target="batch-build-library">
256
                        <param name="bb-library.name" value="${andami}"/>
257
                </antcall>
258

    
259
                <ant dir="${core}" target="import-build-number" inheritAll="false">
260
                        <property name="buildNumberFile" location="build.number"/>
261
                </ant>
262
                <antcall target="batch-build-library">
263
                        <param name="bb-library.name" value="${core}"/>
264
                </antcall>
265

    
266

    
267
                <antcall target="batch-build-library">
268
                        <param name="bb-library.name" value="${projections}"/>
269
                </antcall>
270
                <antcall target="batch-build-library">
271
                        <param name="bb-library.name" value="${libraster}"/>
272
                </antcall>
273
                <antcall target="batch-build-library">
274
                        <param name="bb-library.name" value="${libdxf}"/>
275
                </antcall>
276
                <antcall target="batch-build-library">
277
                        <param name="bb-library.name" value="${libjcrs}"/>
278
                </antcall>
279
                <antcall target="batch-build-library">
280
                        <param name="bb-library.name" value="${driver}"/>
281
                </antcall>
282
                <antcall target="batch-build-library">
283
                        <param name="bb-library.name" value="${remote}"/>
284
                </antcall>
285

    
286

    
287

    
288
                <antcall target="batch-build-library">
289
                        <param name="bb-library.name" value="${gdbms}"/>
290
                </antcall>
291
                <antcall target="batch-build-library">
292
                        <param name="bb-library.name" value="${fmap}"/>
293
                </antcall>
294
                <antcall target="batch-build-library">
295
                        <param name="bb-library.name" value="${gvSIG}"/>
296
                </antcall>
297
                <antcall target="batch-build-extension">
298
                        <param name="bb-extension.name" value="${extjcrs}"/>
299
                </antcall>
300
        </target>
301

    
302

    
303

    
304
        <property name="libdwg" location="../libDwg"/>
305
        <property name="extdwg" location="../extDwg"/>
306
        <property name="raster-se" location="../extRasterTools-SE"/>
307
        <property name="event" location="../extAddEventTheme"/>
308
        <property name="appcatalog" location="../appCatalogAndGazetteerClient"/>
309
        <property name="catalog" location="../extCatalogAndGazetteer"/>
310
        <property name="dataloc" location="../extDataLocator"/>
311
        <property name="cad" location="../extCAD"/>
312
        <property name="geoprocessing" location="../extGeoProcessing"/>
313
        <property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
314
        <property name="georeferencing" location="../extGeoreferencing"/>
315
        <property name="jdbc" location="../extJDBC"/>
316
        <property name="oracleSpatial" location="../extOracleSpatial"/>
317
        <property name="oracleSDE" location="../extSDE"/>
318
        <property name="scripting" location="../extScripting"/>
319
    <property name="annotations" location="../extAnnotations"/>
320
        <property name="expressionField" location="../extExpresionField"/>
321
        <property name="wcs" location="../extWCS"/>
322
        <property name="wfs" location="../extWFS2"/>
323
        <property name="wms" location="../extWMS"/>
324
        <property name="centerview" location="../extCenterViewToPoint"/>
325
    <property name="libArcIMS" location="../libArcIMS"/>
326
    <property name="Arcims" location="../extArcims"/>
327

    
328
        <target name="batch-build-extension">
329
                <condition property="bb-extension.dir" value="${bb-extension.name}" else="scripts/voidTarget">
330
                        <available file="${bb-extension.name}" type="dir"/>
331
                </condition>
332
           <ant dir="${bb-extension.dir}" target="import-build-number" inheritAll="false">
333
                        <property name="buildNumberFile" location="build.number"/>
334
                </ant>
335
                <ant dir="${bb-extension.dir}" target="batch-build" inheritAll="false">
336
                        <property name="debug" value="${debug}"/>
337
                        <property name="debuglevel" value="${debuglevel}"/>
338
                        <property name="encoding" value="${encoding}"/>
339
                        <property name="projectName" value="${bb-extension.name}" />
340
                        <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
341
                        <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
342
                </ant>
343
        </target>
344

    
345
        <target name="extensions" depends="base">
346
                <antcall target="batch-build-library">
347
                        <param name="bb-library.name" value="${libdwg}"/>
348
                </antcall>
349
                <antcall target="batch-build-library">
350
                        <param name="bb-library.name" value="${extdwg}"/>
351
                </antcall>
352
                <antcall target="batch-build-extension">
353
                        <param name="bb-extension.name" value="${raster-se}"/>
354
                </antcall>
355
                <antcall target="batch-build-extension">
356
                        <param name="bb-extension.name" value="${event}"/>
357
                </antcall>
358
                <antcall target="batch-build-extension">
359
                        <param name="bb-extension.name" value="${appcatalog}"/>
360
                </antcall>
361
                <antcall target="batch-build-extension">
362
                        <param name="bb-extension.name" value="${catalog}"/>
363
                </antcall>
364
                <antcall target="batch-build-extension">
365
                        <param name="bb-extension.name" value="${dataloc}"/>
366
                </antcall>
367
                <antcall target="batch-build-extension">
368
                        <param name="bb-extension.name" value="${geoprocessing}"/>
369
                </antcall>
370
                <antcall target="batch-build-extension">
371
                        <param name="bb-extension.name" value="${geoprocessingExtensions}"/>
372
                </antcall>
373
                <antcall target="batch-build-extension">
374
                        <param name="bb-extension.name" value="${georeferencing}"/>
375
                </antcall>
376
                <antcall target="batch-build-extension">
377
                        <param name="bb-extension.name" value="${jdbc}"/>
378
                </antcall>
379
                <antcall target="batch-build-extension">
380
                        <param name="bb-extension.name" value="${oracleSpatial}"/>
381
                </antcall>
382
                <antcall target="batch-build-extension">
383
                        <param name="bb-extension.name" value="${oracleSDE}"/>
384
                </antcall>
385
                <antcall target="batch-build-extension">
386
                        <param name="bb-extension.name" value="${scripting}"/>
387
                </antcall>
388
                <antcall target="batch-build-extension">
389
                        <param name="bb-extension.name" value="${annotations}"/>
390
                </antcall>
391
                <antcall target="batch-build-extension">
392
                        <param name="bb-extension.name" value="${expressionField}"/>
393
                </antcall>
394
                <antcall target="batch-build-extension">
395
                        <param name="bb-extension.name" value="${wcs}"/>
396
                </antcall>
397
                <antcall target="batch-build-extension">
398
                        <param name="bb-extension.name" value="${wfs}"/>
399
                </antcall>
400
                <antcall target="batch-build-extension">
401
                        <param name="bb-extension.name" value="${wms}"/>
402
                </antcall>
403
                <antcall target="batch-build-extension">
404
                        <param name="bb-extension.name" value="${centerview}"/>
405
                </antcall>
406
                <antcall target="batch-build-extension">
407
                        <param name="bb-extension.name" value="${libArcIMS}"/>
408
                </antcall>
409
                <antcall target="batch-build-extension">
410
                        <param name="bb-extension.name" value="${Arcims}"/>
411
                </antcall>
412
        </target>
413

    
414
        <target name="clean-all"
415
                                depends="clean-base,clean-extensions"
416
                                description="clean up" />
417

    
418
        <target name="clean-base"
419
                description="cleans the base components of gvSIG: appgvSIG + libs">
420
                <!-- Delete the ${build} and ${dist} directory trees -->
421
                <condition property="utiles.Dir" value="${utiles}" else="scripts/voidTarget">
422
                        <available file="${utiles}" type="dir"/>
423
                </condition>
424
                <ant dir="${utiles.Dir}" target="clean">
425
                        <property name="projectName" value="${utiles}" />
426
                </ant>
427

    
428
                <condition property="i18n.Dir" value="${i18n}" else="scripts/voidTarget">
429
                        <available file="${i18n}" type="dir"/>
430
                </condition>
431
                <ant dir="${i18n.Dir}" target="clean">
432
                        <property name="projectName" value="${i18n}" />
433
                </ant>
434
                <condition property="exceptions.Dir" value="${exceptions}" else="scripts/voidTarget">
435
                        <available file="${exceptions}" type="dir"/>
436
                </condition>
437
                <ant dir="${exceptions.Dir}" target="clean">
438
                        <property name="projectName" value="${exceptions}" />
439
                </ant>
440

    
441
                <ant dir="${andami}" target="clean"/>
442
                <ant dir="${core}" target="clean"/>
443

    
444
                <condition property="projections.Dir" value="${projections}" else="scripts/voidTarget">
445
                        <available file="${projections}" type="dir"/>
446
                </condition>
447
                <ant dir="${projections.Dir}" target="clean">
448
                        <property name="projectName" value="${projections}" />
449
                </ant>
450

    
451
                <condition property="driver.Dir" value="${driver}" else="scripts/voidTarget">
452
                        <available file="${driver}" type="dir"/>
453
                </condition>
454
                <ant dir="${driver.Dir}" target="clean">
455
                        <property name="projectName" value="${driver}" />
456
                </ant>
457

    
458
                <condition property="remote.Dir" value="${remote}" else="scripts/voidTarget">
459
                        <available file="${remote}" type="dir"/>
460
                </condition>
461
                <ant dir="${remote.Dir}" target="clean">
462
                        <property name="projectName" value="${remote}" />
463
                </ant>
464
                <condition property="gdbms.Dir" value="${gdbms}" else="scripts/voidTarget">
465
                        <available file="${gdbms}" type="dir"/>
466
                </condition>
467
                <ant dir="${gdbms.Dir}" target="clean">
468
                        <property name="projectName" value="${remote}" />
469
                </ant>
470
                <ant dir="${fmap}" target="clean"/>
471
                <ant dir="${gvSIG}" target="clean"/>
472

    
473
                <condition property="libui.Dir" value="${libui}" else="scripts/voidTarget">
474
                        <available file="${libui}" type="dir"/>
475
                </condition>
476
                <ant dir="${libui.Dir}" target="clean">
477
                        <property name="projectName" value="${libui}" />
478
                </ant>
479
        </target>
480

    
481
        <target name="clean-extensions"
482
                description="Clean the extensions">
483
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
484
                        <available file="${event}" type="dir"/>
485
                </condition>
486
                <ant dir="${event.Dir}" target="clean" inheritAll="false">
487
                        <property name="projectName" value="${event}" />
488
                </ant>
489

    
490
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
491
                        <available file="${libdwg}" type="dir"/>
492
                </condition>
493
                <ant dir="${libdwg.Dir}" target="clean" inheritAll="false">
494
                        <property name="projectName" value="${libdwg}" />
495
                </ant>
496

    
497
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
498
                        <available file="${extdwg}" type="dir"/>
499
                </condition>
500
                <ant dir="${extdwg.Dir}" target="clean" inheritAll="false">
501
                        <property name="projectName" value="${extdwg}" />
502
                </ant>
503

    
504
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
505
                        <available file="${jdbc}" type="dir"/>
506
                </condition>
507
                <ant dir="${jdbc.Dir}" target="clean" inheritAll="false">
508
                        <property name="projectName" value="${jdbc}" />
509
                </ant>
510

    
511
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
512
                        <available file="${cad}" type="dir"/>
513
                </condition>
514
                <ant dir="${cad.Dir}" target="clean" inheritAll="false">
515
                        <property name="projectName" value="${cad}" />
516
                </ant>
517

    
518
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
519
                        <available file="${appcatalog}" type="dir"/>
520
                </condition>
521
                <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false">
522
                        <property name="projectName" value="${appcatalog}" />
523
                </ant>
524

    
525
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
526
                        <available file="${catalog}" type="dir"/>
527
                </condition>
528
                <ant dir="${catalog.Dir}" target="clean" inheritAll="false">
529
                        <property name="projectName" value="${catalog}" />
530
                </ant>
531

    
532
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
533
                        <available file="${wcs}" type="dir"/>
534
                </condition>
535
                <ant dir="${wcs.Dir}" target="clean" inheritAll="false">
536
                        <property name="projectName" value="${wcs}" />
537
                </ant>
538

    
539
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
540
                        <available file="${wms}" type="dir"/>
541
                </condition>
542
                <ant dir="${wms.Dir}" target="clean" inheritAll="false">
543
                        <property name="projectName" value="${wms}" />
544
                </ant>
545

    
546
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
547
                        <available file="${dataloc}" type="dir"/>
548
                </condition>
549
                <ant dir="${dataloc}" target="clean" inheritAll="false">
550
                        <property name="projectName" value="${dataloc}" />
551
                </ant>
552

    
553
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
554
                        <available file="${geoprocessing}" type="dir"/>
555
                </condition>
556
                <ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false">
557
                        <property name="projectName" value="${geoprocessing}" />
558
                </ant>
559

    
560
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
561
                        <available file="${geoprocessingExtensions}" type="dir"/>
562
                </condition>
563
                <ant dir="${geoprocessingExtensions.Dir}" target="clean" inheritAll="false">
564
                        <property name="projectName" value="${geoprocessingExtensions}" />
565
                </ant>
566

    
567
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
568
                        <available file="${georeferencing}" type="dir"/>
569
                </condition>
570
                <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false">
571
                        <property name="projectName" value="${georeferencing}" />
572
                </ant>
573

    
574
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
575
                        <available file="${rastertools}" type="dir"/>
576
                </condition>
577
                <ant dir="${rastertools.Dir}" target="clean" inheritAll="false">
578
                        <property name="projectName" value="${rastertools}" />
579
                </ant>
580

    
581
                <condition property="wfsg.Dir" value="${wfs}" else="scripts/voidTarget">
582
                        <available file="${wfs}" type="dir"/>
583
                </condition>
584
                <ant dir="${wfsg.Dir}" target="clean" inheritAll="false">
585
                        <property name="projectName" value="${wfs}" />
586
                </ant>
587

    
588
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
589
                        <available file="${scripting}" type="dir"/>
590
                </condition>
591
                <ant dir="${scripting.Dir}" target="clean" inheritAll="false">
592
                        <property name="projectName" value="${scripting}" />
593
                </ant>
594

    
595
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
596
                        <available file="${centerview}" type="dir"/>
597
                </condition>
598
                <ant dir="${centerview.Dir}" target="clean" inheritAll="false">
599
                        <property name="projectName" value="${centerview}" />
600
                </ant>
601
        </target>
602

    
603
        <!-- Those targets don't compile, they just generate the jars and copy files to
604
        andami. The compilation is supposed to be done by Eclipse  -->
605
        <target name="install-all"
606
                                        depends="install-base,install-extensions"
607
                                        description="Generate jars and copy files to Andami for the whole application (gvSIG+libs+extensions). Compilation is supposed to be automatically done by Eclipse" />
608

    
609
        <target name="install-base"
610
                                description="Generate jars and copy files to Andami for the application (gvSIG+libs). Compilation is supposed to be automatically done by Eclipse" >
611
                <ant dir="${utiles}" inheritAll="false" />
612
                <ant dir="${i18n}" inheritAll="false" />
613
                <ant dir="${andami}" inheritAll="false" />
614
                <ant dir="${core}" inheritAll="false" />
615
                <ant dir="${cms}" inheritAll="false" />
616
                <ant dir="${driver}" inheritAll="false" />
617
                <ant dir="${remote}" inheritAll="false" />
618
                <ant dir="${gdbms}" inheritAll="false" />
619
                <ant dir="${fmap}" inheritAll="false" />
620
                <ant dir="${gvSIG}" inheritAll="false" />
621
        </target>
622

    
623
        <target name="install-extensions" depends="base"
624
                        description="Generate jars and copy files to Andami for the extensions. Compilation is supposed to be automatically done by Eclipse" >
625
                <ant dir="${event}" inheritAll="false" />
626
                <ant dir="${libdwg}" inheritAll="false" />
627
                <ant dir="${extdwg}" inheritAll="false" />
628
                <ant dir="${jdbc}" inheritAll="false" />
629
                <ant dir="${cad}" inheritAll="false" />
630
                <ant dir="${appcatalog}" inheritAll="false" />
631
                <ant dir="${catalog}" inheritAll="false" />
632
                <ant dir="${wcs}" inheritAll="false" />
633
                <ant dir="${wms}" inheritAll="false" />
634
                <ant dir="${dataloc}" inheritAll="false" />
635
                <ant dir="${geoprocessing}" inheritAll="false" />
636
                <ant dir="${georeferencing}" inheritAll="false" />
637
                <ant dir="${rastertools}" inheritAll="false" />
638
                <ant dir="${wfs}" inheritAll="false" />
639
                <ant dir="${scripting}" inheritAll="false" />
640
                <ant dir="${centerview}" inheritAll="false" />
641
        </target>
642

    
643

    
644

    
645
        <!-- The download targets are still no working well (or maybe not working at all...) -->
646
        <target name="download"
647
                        description="Not working yet. Downloads all the projects from the CVS HEAD"
648
                        depends="download-base, download-extensions">
649
        </target>
650

    
651
        <target name="download-base" description="Not working yet. It will download the base projects required to build gvSIG">
652
                <property name="downloadDir" value="tmp-download"/>
653
                <mkdir dir="${downloadDir}" />
654

    
655
                <!-- andami -->
656
                <cvs
657
                        dest="${downloadDir}"
658
                        package="gvSIG-project/frameworks/_fwAndami"
659
                        cvsRoot=":extssh:www.gvsig.org:/var/lib/cvs-gvSIG" />
660

    
661
                <move todir="${andami}">
662
                        <fileset dir="${downloadDir}/gvSIG-project/frameworks/_fwAndami"/>
663
                </move>
664

    
665
                <!-- we have to do the same for the rest of the projects -->
666
        </target>
667

    
668
        <target name="download-extensions" description="Not working yet. It will download the extensions">
669
        </target>
670
</project>
671