Statistics
| Revision:

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

History | View | Annotate | Download (24.7 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="../libUI"/>
147
        <property name="exceptions" location="../libExceptions"/>
148
        <property name="andami" location="../_fwAndami"/>
149
        <property name="core" location="../libCorePlugin"/>
150
        <property name="libuicomponent" location="../libUIComponent"/>
151
        <property name="projections" location="../libProjection"/>
152
        <property name="libraster" location="../libRaster"/>
153
        <property name="libdxf" location="../libDXF"/>
154
        <property name="libjcrs" location="../libJCRS"/>
155
        <property name="driver" location="../libDriverManager"/>
156
        <property name="remote" location="../libRemoteServices"/>
157
        <property name="gdbms" location="../libGDBMS"/>
158
        <property name="fmap" location="../libFMap"/>
159
        <property name="gvSIG" location="../appgvSIG"/>
160
        <property name="extjcrs" location="../extJCRS"/>
161
        <property name="mandatoryProjets" value="${andami},${core},${fmap},${gvSIG}"/>
162

    
163

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

    
166

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

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

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

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

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

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

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

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

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

    
226

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

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

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

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

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

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

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

    
267

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

    
287

    
288

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

    
303

    
304

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

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

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

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

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

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

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

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

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

    
459
                <condition property="remote.Dir" value="${remote}" else="scripts/voidTarget">
460
                        <available file="${remote}" type="dir"/>
461
                </condition>
462
                <ant dir="${remote.Dir}" target="clean">
463
                        <property name="projectName" value="${remote}" />
464
                </ant>
465

    
466
                <ant dir="${gdbms}" target="clean" />
467
                <ant dir="${fmap}" target="clean"/>
468
                <ant dir="${gvSIG}" target="clean"/>
469

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
641

    
642

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

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

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

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

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

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