Statistics
| Revision:

root / branches / v10 / applications / appgvSIG / build.xml @ 16955

History | View | Annotate | Download (45.3 KB)

1
<project name="appgvSIG" default="dist" basedir=".">
2
    <description>
3
        Instala el plugin
4
    </description>
5
        <!-- set global properties for this build -->
6
        <!-- <property name="buildDate" value="20041018"/> -->
7
        <property name="version" value="1.0 beta ${eclipse.startTime}"/>
8
        <property name="src" location="src"/>
9
        <property name="build" location="bin"/>
10
        <property name="dist"  location="dist"/>
11
        <property name="lib"   location="lib"/>
12
        <property name="plugin" value="com.iver.cit.gvsig"/>
13
        <property name="fmapdir" value="../libFMap"/>
14
        <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
15
        <property name="andamiLibs" location="../_fwAndami/lib"/>
16
        <property name="fmapLibs"   location="../libFMap/lib"/>
17
        <property name="andamiJar"  location="../_fwAndami/andami.jar"/>
18
        <property name="makeZip" location="makeZip"/>
19
        <property name="zipName" value="gvSIG-${version}"/>
20
        <import file="compile-classpath.xml"/>
21
        <import file="../_fwAndami/compile-classpath.xml"/>
22
        <property name="build-doc" value="build-doc"/>
23
        <property name="JavaSourceVersion" value="1.4"/>
24
        <property name="JavaTargetVersion" value="1.5"/>
25
        <property name="encoding" value="ISO_8859_1"/>
26

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

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

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

    
48
        <target name="dist"
49
                                depends="init"
50
                                description="Generate the distribution of the gvSIG plugin. To build just the appgvSIG project from Eclipse " >
51
                <!-- Create the distribution directory -->
52
                <mkdir dir="${dist}"/>
53

    
54
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
55
                <copy todir="${dist}/lib">
56
                        <fileset dir="./lib" includes="*.jar,*.zip"/>
57
                </copy>
58
                <copy todir="${dist}/lib">
59
                        <fileset dir="${fmapdir}/lib" includes="*.jar"/>
60
                </copy>
61
                <jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/>
62
                <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
63
                <copy file="config/config.xml" todir="${dist}"/>
64
                <copy file="config/about.htm" todir="${dist}"/>
65
                <copy file="build.number" todir="${dist}"/>
66
                <copy todir="${dist}">
67
                        <fileset dir="config" includes="text*.properties"/>
68
                </copy>
69
                <copy todir="${dist}/images">
70
                        <fileset dir="images/" includes="*"/>
71
                </copy>
72
                <copy todir="${dist}/northimages">
73
                        <fileset dir="northimages/" includes="*"/>
74
                </copy>
75

    
76
                <move todir="${extensionDir}/${plugin}/">
77
                        <fileset dir="${dist}" includes="**/**"/>
78
                </move>
79
        </target>
80

    
81
  <target name="makeZip"
82
          description="Genera un zip con todo lo necesario para ejecutar gvSIG. Actualmente no se usa"
83
          depends="dist">
84
    <!-- Create the distribution directory -->
85
    <mkdir dir="${dist}/${zipName}"/>
86
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/>
87
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/>
88
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/>
89
    <copy todir="${dist}/${zipName}">
90
                <fileset dir="../mdiApp">
91
                        <include name="extensiones/${plugin}/**"/>
92
                        <include name="extensiones/plugin.*"/>
93
                        <include name="plugin.*"/>
94
                </fileset>
95
                <!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
96
                <fileset dir="../mdiApp_v02_estable">
97
                        <include name="lib/**"/>
98
                </fileset>
99
                <fileset dir="distFiles" includes="**/**"/>
100
    </copy>
101
        <zip zipfile="${zipName}.zip">
102
                <fileset dir="${dist}">
103
                        <include name="**/**"/>
104
                </fileset>
105
        </zip>
106
 <!--   <delete dir="${dist}"/> -->
107
  </target>
108

    
109
        <target name="batch-build"
110
                        description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute"
111
                        depends="init,get-fmap-libs,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
112
        </target>
113

    
114
        <target name="compile" description="compile the source">
115
                <!-- Create the time stamp -->
116
                <tstamp/>
117
                <!-- Create the build directory structure used by compile -->
118
                <mkdir dir="${build}"/>
119
                <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
120
                <!-- <buildnumber />-->
121
                <!-- Compile the Java code from ${src} to ${build} -->
122
                <javac  srcdir="${src}"
123
                        destdir="${build}"
124
                        source="${JavaSourceVersion}"
125
                        target="${JavaTargetVersion}"
126
                        debug="${debug}"
127
                        debuglevel="${debuglevel}"
128
                        excludes="com/iver/cit/gvsig/test/**"
129
                        encoding="${encoding}">
130
                <classpath refid="appgvSIG.compile-classpath"/>
131
<!--                <classpath refid="_fwAndami.compile-classpath"/> -->
132
                </javac>
133
                <copy todir="${build}">
134
                        <fileset
135
                                dir="${src}"
136
                                excludes="**/*.java"/>
137
                </copy>
138
        </target>
139

    
140
        <target name="create-jar" description="Creates the jar file">
141
                <mkdir dir="${dist}/lib"/>
142
                <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
143
        </target>
144

    
145
        <target name="copy-libs"
146
                depends="get-fmap-libs">
147
                <mkdir dir="${dist}"/>
148
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
149
                <copy todir="${dist}/lib">
150
                        <fileset dir="./lib" includes="*.jar,*.zip"/>
151
                </copy>
152
        </target>
153

    
154
        <target name="get-fmap-libs">
155
                <copy todir="${dist}/lib">
156
                        <fileset dir="${fmapdir}/lib" includes="*.jar"/>
157
                </copy>
158
                <jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/>
159
                <copy file="${dist}/lib/fmap.jar" todir="${extensionDir}/${plugin}/lib"/>
160
        </target>
161

    
162
        <target name="copy-data-files">
163
        <copy todir="${dist}">
164
                <fileset dir="config" includes="*" />
165
        </copy>
166
                <copy file="build.number" todir="${dist}"/>
167
                <copy todir="${dist}/images">
168
                        <fileset dir="images/" includes="*"/>
169
                </copy>
170
                <copy todir="${dist}/northimages">
171
                        <fileset dir="northimages/" includes="*"/>
172
                </copy>
173
    </target>
174

    
175
        <target name="move-to-andami" description="Moves the build directory to andami">
176
                <move todir="${extensionDir}/${plugin}/">
177
                        <fileset dir="${dist}" includes="**/**"/>
178
                </move>
179
        </target>
180

    
181
        <target name="clean"
182
                        description="clean up" >
183
                <!-- Delete the ${build} and ${dist} directory trees -->
184
                <delete dir="${build}"/>
185
<!--                <delete dir="${dist}"/> -->
186
        </target>
187

    
188

    
189
        <!-- the global build starts here -->
190
        <property name="andami" location="../_fwAndami"/>
191
        <property name="utiles" location="../libIverUtiles"/>
192
        <property name="core" location="../libCorePlugin"/>
193
        <property name="driver" location="../libDriverManager"/>
194
    <property name="cms" location="../libCq CMS for java"/>
195
        <property name="libjcrs" location="../libJCRS"/>
196
        <property name="extjcrs" location="../extJCRS"/>
197
        <property name="fmap" location="../libFMap"/>
198
        <property name="gvSIG" location="../appgvSIG"/>
199
        <property name="remote" location="../libRemoteServices"/>
200
        <property name="gdbms" location="../libGDBMS"/>
201
        <property name="i18n" location="../libInternationalization"/>
202
        <property name="global.installBaseDir" location="${andami}"/>
203

    
204

    
205
    <target name="make-binary-distribution"
206
            description="Prepare a binary distribution of the application. This increments the build number and then makes a global build"
207
            depends="clean_andami_gvSIG,clean-all,buildNumber,build-all">
208
    </target>
209

    
210
    <target name="clean_andami_gvSIG"
211
            description="clean up the gvSIG andami deploy">
212
        <delete dir="${andami}/gvSIG" failonerror="false"/>
213
    </target>
214

    
215

    
216

    
217
        <target name="buildNumber"
218
                                description="Generates the build.number for the application">
219
                <propertyfile
220
                                file="build.number"
221
                                comment="Build Number for ANT. Do not edit!">
222
                        <entry  key="build.number" default="0" type="int" operation="+" pattern="0000"/>
223
                </propertyfile>
224
        </target>
225

    
226
        <target name="build-all"
227
                                depends="debug-yes,base,extensions"
228
                                description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" />
229

    
230
        <target name="eclipse-build-all"
231
                                        depends="debug-yes,base,extensions"
232
                                        description="Builds the application, including extensions, producing debug info" />
233

    
234
        <target name="debug-yes">
235
                <property name="debug" value="on"/>
236
                <property name="debuglevel" value="lines, vars"/>
237
        </target>
238

    
239
        <target name="debug-no">
240
                <property name="debug" value="off"/>
241
        </target>
242

    
243
        <target name="eclipse-base" depends="debug-yes,base" />
244
        <target name="eclipse-extensions" depends="debug-yes,base,extensions" />
245

    
246
        <target name="base"
247
                        description="Builds the application, excluding extensions">
248
                <property file="build.number"/>
249
                  <ant dir="${i18n}" target="batch-build" inheritAll="false">
250
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
251
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
252
                        <property name="debug" value="${debug}"/>
253
                        <property name="debuglevel" value="${debuglevel}"/>
254
                        <property name="encoding" value="ISO_8859_1"/>
255
                </ant>
256
                <ant dir="${utiles}" target="batch-build" inheritAll="false">
257
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
258
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
259
                        <property name="debug" value="${debug}"/>
260
                        <property name="debuglevel" value="${debuglevel}"/>
261
                        <property name="encoding" value="ISO_8859_1"/>
262
                </ant>
263
                <ant dir="${andami}" target="batch-build"  inheritAll="false">
264
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
265
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
266
                        <property name="debug" value="${debug}"/>
267
                        <property name="debuglevel" value="${debuglevel}"/>
268
                        <property name="encoding" value="ISO_8859_1"/>
269
                </ant>
270
                <ant dir="${libui}" target="batch-build" inheritAll="false">
271
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
272
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
273
                        <property name="debug" value="${debug}"/>
274
                        <property name="debuglevel" value="${debuglevel}"/>
275
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
276
                        <property name="encoding" value="ISO_8859_1"/>
277
                </ant>
278
                <ant dir="${libui_Components}" target="batch-build" inheritAll="false">
279
                                <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
280
                                <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
281
                        <property name="debug" value="${debug}"/>
282
                        <property name="debuglevel" value="${debuglevel}"/>
283
                        <property name="encoding" value="ISO_8859_1"/>
284
                </ant>
285
                <ant dir="${core}" target="import-build-number" inheritAll="false">
286
                        <property name="buildNumberFile" location="build.number"/>
287
                </ant>
288
                <ant dir="${core}" target="batch-build"  inheritAll="false">
289
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
290
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
291
                        <property name="debug" value="${debug}"/>
292
                        <property name="debuglevel" value="${debuglevel}"/>
293
                        <property name="encoding" value="ISO_8859_1"/>
294
                </ant>
295
                <ant dir="${cms}" target="batch-build"  inheritAll="false">
296
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
297
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
298
                        <property name="debug" value="${debug}"/>
299
                        <property name="debuglevel" value="${debuglevel}"/>
300
                        <property name="encoding" value="ISO_8859_1"/>
301
                </ant>
302
                <ant dir="${driver}" target="batch-build"  inheritAll="false">
303
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
304
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
305
                        <property name="debug" value="${debug}"/>
306
                        <property name="debuglevel" value="${debuglevel}"/>
307
                        <property name="encoding" value="ISO_8859_1"/>
308
                </ant>
309
                <ant dir="${remote}" target="batch-build"  inheritAll="false">
310
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
311
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
312
                        <property name="debug" value="${debug}"/>
313
                        <property name="debuglevel" value="${debuglevel}"/>
314
                        <property name="encoding" value="ISO_8859_1"/>
315
                </ant>
316
                <ant dir="${gdbms}" target="batch-build" inheritAll="false">
317
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
318
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
319
                        <property name="debug" value="${debug}"/>
320
                        <property name="debuglevel" value="${debuglevel}"/>
321
                        <property name="encoding" value="ISO_8859_1"/>
322
                </ant>
323
                <ant dir="${fmap}" target="batch-build"  inheritAll="false">
324
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
325
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
326
                        <property name="debug" value="${debug}"/>
327
                        <property name="debuglevel" value="${debuglevel}"/>
328
                        <property name="encoding" value="ISO_8859_1"/>
329
                </ant>
330
                <ant dir="${gvSIG}" target="batch-build"  inheritAll="false">
331
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
332
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
333
                        <property name="debug" value="${debug}"/>
334
                        <property name="debuglevel" value="${debuglevel}"/>
335
                        <property name="encoding" value="ISO_8859_1"/>
336
                </ant>
337
                <condition property="libjcrs.Dir" value="${libjcrs}" else="scripts/voidTarget">
338
                        <available file="${libjcrs}" type="dir"/>
339
                </condition>
340
                <ant dir="${libjcrs.Dir}" target="batch-build" inheritAll="false">
341
                        <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
342
                        <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
343
                        <property name="debug" value="${debug}"/>
344
                        <property name="debuglevel" value="${debuglevel}"/>
345
                        <property name="encoding" value="ISO_8859_1"/>
346
                </ant>
347
        </target>
348

    
349
        <property name="appcatalog" location="../appCatalogAndGazetteerClient"/>
350
        <property name="catalog" location="../extCatalogAndGazetteer"/>
351
        <property name="dataloc" location="../extDataLocator"/>
352
        <property name="event" location="../extAddEventTheme"/>
353
        <property name="libdwg" location="../libDwg"/>
354
        <property name="extdwg" location="../extDwg"/>
355
        <property name="cad" location="../extCAD"/>
356
        <property name="geoprocessing" location="../extGeoProcessing"/>
357
        <property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
358
        <property name="georeferencing" location="../extGeoreferencing"/>
359
        <property name="jdbc" location="../extJDBC"/>
360
        <property name="rastertools" location="../extRasterTools"/>
361
        <property name="wcs" location="../extWCS"/>
362
        <property name="wfs" location="../extWFS2"/>
363
        <property name="wms" location="../extWMS"/>
364
        <property name="scripting" location="../extScripting"/>
365
        <property name="centerview" location="../extCenterViewToPoint"/>
366
        <property name="libui" location="../libUI"/>
367
        <property name="libui_Components" location="../libUIComponent_praster"/>
368
        <property name="expressionField" location="../extExpressionField"/>
369
    <property name="annotations" location="../extAnnotations"/>
370
    <property name="geobd" location="../extOracleSpatial"/>
371
    <property name="libArcIMS" location="../libArcIMS"/>
372
    <property name="Arcims" location="../extArcims"/>
373

    
374
        <target name="extensions" depends="base">
375
                <condition property="extjcrs.Dir" value="${extjcrs}" else="scripts/voidTarget">
376
                        <available file="${extjcrs}" type="dir"/>
377
                </condition>
378
                <ant dir="${extjcrs.Dir}" target="import-build-number" inheritAll="false">
379
                        <property name="buildNumberFile" location="build.number"/>
380
                </ant>
381
                <ant dir="${extjcrs.Dir}" target="batch-build" inheritAll="false">
382
                        <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
383
                        <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
384
                        <property name="debug" value="${debug}"/>
385
                        <property name="debuglevel" value="${debuglevel}"/>
386
                        <property name="encoding" value="ISO_8859_1"/>
387
                </ant>
388
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
389
                        <available file="${event}" type="dir"/>
390
                </condition>
391
                <ant dir="${event.Dir}" target="import-build-number" inheritAll="false">
392
                        <property name="buildNumberFile" location="build.number"/>
393
                </ant>
394
                <ant dir="${event.Dir}" target="batch-build" inheritAll="false">
395
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
396
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
397
                        <property name="debug" value="${debug}"/>
398
                        <property name="debuglevel" value="${debuglevel}"/>
399
                        <property name="encoding" value="ISO_8859_1"/>
400
                </ant>
401
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
402
                        <available file="${libdwg}" type="dir"/>
403
                </condition>
404
                <ant dir="${libdwg.Dir}" target="batch-build" inheritAll="false">
405
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
406
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
407
                        <property name="debug" value="${debug}"/>
408
                        <property name="debuglevel" value="${debuglevel}"/>
409
                        <property name="encoding" value="ISO_8859_1"/>
410
                </ant>
411
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
412
                        <available file="${extdwg}" type="dir"/>
413
                </condition>
414
                <ant dir="${extdwg.Dir}" target="batch-build" inheritAll="false">
415
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
416
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
417
                        <property name="debug" value="${debug}"/>
418
                        <property name="debuglevel" value="${debuglevel}"/>
419
                        <property name="encoding" value="ISO_8859_1"/>
420
                </ant>
421
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
422
                        <available file="${jdbc}" type="dir"/>
423
                </condition>
424
                <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false">
425
                        <property name="buildNumberFile" location="build.number"/>
426
                </ant>
427
                <ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false">
428
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
429
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
430
                        <property name="debug" value="${debug}"/>
431
                        <property name="debuglevel" value="${debuglevel}"/>
432
                        <property name="encoding" value="ISO_8859_1"/>
433
                </ant>
434
        <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
435
            <available file="${geobd}" type="dir"/>
436
        </condition>
437
        <ant dir="${geobd.Dir}" target="import-build-number" inheritAll="false">
438
            <property name="buildNumberFile" location="build.number"/>
439
        </ant>
440
        <ant dir="${geobd.Dir}" target="batch-build" inheritAll="false">
441
                <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
442
                <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
443
            <property name="debug" value="${debug}"/>
444
            <property name="debuglevel" value="${debuglevel}"/>
445
            <property name="encoding" value="ISO_8859_1"/>
446
        </ant>
447
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
448
                        <available file="${cad}" type="dir"/>
449
                </condition>
450
                <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false">
451
                        <property name="buildNumberFile" location="build.number"/>
452
                </ant>
453
                <ant dir="${cad.Dir}" target="batch-build" inheritAll="false">
454
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
455
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
456
                        <property name="debug" value="${debug}"/>
457
                        <property name="debuglevel" value="${debuglevel}"/>
458
                        <property name="encoding" value="ISO_8859_1"/>
459
                </ant>
460
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
461
                        <available file="${appcatalog}" type="dir"/>
462
                </condition>
463
                <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false">
464
                        <property name="buildNumberFile" location="build.number"/>
465
                </ant>
466
                <ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false">
467
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
468
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
469
                        <property name="debug" value="${debug}"/>
470
                        <property name="debuglevel" value="${debuglevel}"/>
471
                        <property name="encoding" value="ISO_8859_1"/>
472
                </ant>
473
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
474
                        <available file="${catalog}" type="dir"/>
475
                </condition>
476
                <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false">
477
                        <property name="buildNumberFile" location="build.number"/>
478
                </ant>
479
                <ant dir="${catalog.Dir}" target="batch-build" inheritAll="false">
480
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
481
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
482
                        <property name="debug" value="${debug}"/>
483
                        <property name="debuglevel" value="${debuglevel}"/>
484
                        <property name="encoding" value="ISO_8859_1"/>
485
                </ant>
486
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
487
                        <available file="${wcs}" type="dir"/>
488
                </condition>
489
                <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false">
490
                        <property name="buildNumberFile" location="build.number"/>
491
                </ant>
492
                <ant dir="${wcs.Dir}" target="batch-build" inheritAll="false">
493
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
494
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
495
                        <property name="debug" value="${debug}"/>
496
                        <property name="debuglevel" value="${debuglevel}"/>
497
                        <property name="encoding" value="ISO_8859_1"/>
498
                </ant>
499
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
500
                        <available file="${wms}" type="dir"/>
501
                </condition>
502
                <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false">
503
                        <property name="buildNumberFile" location="build.number"/>
504
                </ant>
505
                <ant dir="${wms.Dir}" target="batch-build" inheritAll="false">
506
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
507
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
508
                        <property name="debug" value="${debug}"/>
509
                        <property name="debuglevel" value="${debuglevel}"/>
510
                        <property name="encoding" value="ISO_8859_1"/>
511
                </ant>
512
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
513
                        <available file="${dataloc}" type="dir"/>
514
                </condition>
515
                <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false">
516
                        <property name="buildNumberFile" location="build.number"/>
517
                </ant>
518
                <ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false">
519
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
520
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
521
                        <property name="debug" value="${debug}"/>
522
                        <property name="debuglevel" value="${debuglevel}"/>
523
                        <property name="encoding" value="ISO_8859_1"/>
524
                </ant>
525
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
526
                        <available file="${geoprocessing}" type="dir"/>
527
                </condition>
528
                <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false">
529
                        <property name="buildNumberFile" location="build.number"/>
530
                </ant>
531
                <ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false">
532
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
533
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
534
                        <property name="debug" value="${debug}"/>
535
                        <property name="debuglevel" value="${debuglevel}"/>
536
                        <property name="encoding" value="ISO_8859_1"/>
537
                </ant>
538
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
539
                        <available file="${geoprocessingExtensions}" type="dir"/>
540
                </condition>
541
                <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false">
542
                        <property name="buildNumberFile" location="build.number"/>
543
                </ant>
544
                <ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false">
545
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
546
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
547
                        <property name="debug" value="${debug}"/>
548
                        <property name="debuglevel" value="${debuglevel}"/>
549
                        <property name="encoding" value="ISO_8859_1"/>
550
                </ant>
551
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
552
                        <available file="${georeferencing}" type="dir"/>
553
                </condition>
554
                <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false">
555
                        <property name="buildNumberFile" location="build.number"/>
556
                </ant>
557
                <ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false">
558
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
559
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
560
                        <property name="debug" value="${debug}"/>
561
                        <property name="debuglevel" value="${debuglevel}"/>
562
                        <property name="encoding" value="ISO_8859_1"/>
563
                </ant>
564
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
565
                        <available file="${wfs}" type="dir"/>
566
                </condition>
567
                <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false">
568
                        <property name="buildNumberFile" location="build.number"/>
569
                </ant>
570
                <ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false">
571
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
572
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
573
                        <property name="debug" value="${debug}"/>
574
                        <property name="debuglevel" value="${debuglevel}"/>
575
                        <property name="encoding" value="ISO_8859_1"/>
576
                </ant>
577
                <condition property="wfs.Dir" value="${wfs}" else="scripts/voidTarget">
578
                        <available file="${wfs}" type="dir"/>
579
                </condition>
580
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
581
                        <property name="buildNumberFile" location="build.number"/>
582
                </ant>
583
                <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false">
584
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
585
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
586
                        <property name="debug" value="${debug}"/>
587
                        <property name="debuglevel" value="${debuglevel}"/>
588
                        <property name="encoding" value="ISO_8859_1"/>
589
                </ant>
590
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
591
                        <available file="${centerview}" type="dir"/>
592
                </condition>
593
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
594
                        <property name="buildNumberFile" location="build.number"/>
595
                </ant>
596
                <ant dir="${centerview.Dir}" target="batch-build" inheritAll="false">
597
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
598
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
599
                        <property name="debug" value="${debug}"/>
600
                        <property name="debuglevel" value="${debuglevel}"/>
601
                        <property name="encoding" value="ISO_8859_1"/>
602
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
603
                </ant>
604
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
605
                        <available file="${scripting}" type="dir"/>
606
                </condition>
607
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
608
                        <property name="buildNumberFile" location="build.number"/>
609
                </ant>
610
                <ant dir="${scripting.Dir}" target="batch-build" inheritAll="false">
611
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
612
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
613
                        <property name="debug" value="${debug}"/>
614
                        <property name="debuglevel" value="${debuglevel}"/>
615
                        <property name="encoding" value="ISO_8859_1"/>
616
                </ant>
617

    
618
                 <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
619
                        <available file="${expressionField}" type="dir"/>
620
                </condition>
621
                <ant dir="${expressionField.Dir}" target="import-build-number" inheritAll="false">
622
                        <property name="buildNumberFile" location="build.number"/>
623
                </ant>
624
                <ant dir="${expressionField.Dir}" target="batch-build" inheritAll="false">
625
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
626
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
627
                        <property name="debug" value="${debug}"/>
628
                        <property name="debuglevel" value="${debuglevel}"/>
629
                        <property name="encoding" value="ISO_8859_1"/>
630
                </ant>
631

    
632
        <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
633
            <available file="${annotations}" type="dir"/>
634
        </condition>
635
       <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
636
            <property name="buildNumberFile" location="build.number"/>
637
        </ant>
638
        <ant dir="${annotations.Dir}" target="batch-build" inheritAll="false">
639
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
640
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
641
            <property name="debug" value="${debug}"/>
642
            <property name="debuglevel" value="${debuglevel}"/>
643
            <property name="encoding" value="ISO_8859_1"/>
644
        </ant>
645

    
646
        <condition property="libArcIMS.Dir" value="${libArcIMS}" else="scripts/voidTarget">
647
            <available file="${libArcIMS}" type="dir"/>
648
        </condition>
649
        <ant dir="${libArcIMS.Dir}" target="batch-build" inheritAll="false">
650
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
651
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
652
            <property name="debug" value="${debug}"/>
653
            <property name="debuglevel" value="${debuglevel}"/>
654
            <property name="encoding" value="ISO_8859_1"/>
655
        </ant>
656

    
657
        <condition property="Arcims.Dir" value="${Arcims}" else="scripts/voidTarget">
658
            <available file="${Arcims}" type="dir"/>
659
        </condition>
660
       <ant dir="${Arcims.Dir}" target="import-build-number" inheritAll="false">
661
            <property name="buildNumberFile" location="build.number"/>
662
        </ant>
663
        <ant dir="${Arcims.Dir}" target="batch-build" inheritAll="false">
664
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
665
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
666
            <property name="debug" value="${debug}"/>
667
            <property name="debuglevel" value="${debuglevel}"/>
668
            <property name="encoding" value="ISO_8859_1"/>
669
        </ant>
670
        </target>
671

    
672
        <target name="clean-all"
673
                                depends="clean-base,clean-extensions"
674
                                description="clean up" />
675

    
676
        <target name="clean-base"
677
                description="cleans the base components of gvSIG: appgvSIG + libs">
678
                <!-- Delete the ${build} and ${dist} directory trees -->
679
                <ant dir="${utiles}" target="clean"/>
680
                <ant dir="${i18n}" target="clean"/>
681
                <ant dir="${andami}" target="clean"/>
682
                <ant dir="${core}" target="clean"/>
683
            <ant dir="${libui_Components}" target="clean"/>
684
                <ant dir="${cms}" target="clean"/>
685
                <condition property="libjcrs.Dir" value="${libjcrs}" else="scripts/voidTarget">
686
                        <available file="${libjcrs}" type="dir"/>
687
                </condition>
688
                <ant dir="${libjcrs.Dir}" target="clean"/>
689
                <ant dir="${driver}" target="clean"/>
690
                <ant dir="${remote}" target="clean"/>
691
                <ant dir="${gdbms}" target="clean"/>
692
                <ant dir="${fmap}" target="clean"/>
693
                <ant dir="${gvSIG}" target="clean"/>
694
                <ant dir="${libui}" target="clean"/>
695
        </target>
696

    
697
        <target name="clean-extensions"
698
                description="Clean the extensions">
699
                <condition property="extjcrs.Dir" value="${extjcrs}" else="scripts/voidTarget">
700
                        <available file="${extjcrs}" type="dir"/>
701
                </condition>
702
                <ant dir="${extjcrs}" target="clean"/>
703
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
704
                        <available file="${event}" type="dir"/>
705
                </condition>
706
                <ant dir="${event.Dir}" target="clean" inheritAll="false" />
707
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
708
                        <available file="${libdwg}" type="dir"/>
709
                </condition>
710
                <ant dir="${libdwg.Dir}" target="clean" inheritAll="false" />
711
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
712
                        <available file="${extdwg}" type="dir"/>
713
                </condition>
714
                <ant dir="${extdwg.Dir}" target="clean" inheritAll="false" />
715
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
716
                        <available file="${jdbc}" type="dir"/>
717
                </condition>
718
                <ant dir="${jdbc.Dir}" target="clean" inheritAll="false" />
719
        <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
720
            <available file="${geobd}" type="dir"/>
721
        </condition>
722
        <ant dir="${geobd.Dir}" target="clean" inheritAll="false" />
723
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
724
                        <available file="${cad}" type="dir"/>
725
                </condition>
726
                <ant dir="${cad.Dir}" target="clean" inheritAll="false" />
727
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
728
                        <available file="${appcatalog}" type="dir"/>
729
                </condition>
730
                <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false" />
731
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
732
                        <available file="${catalog}" type="dir"/>
733
                </condition>
734
                <ant dir="${catalog.Dir}" target="clean" inheritAll="false" />
735
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
736
                        <available file="${wcs}" type="dir"/>
737
                </condition>
738
                <ant dir="${wcs.Dir}" target="clean" inheritAll="false" />
739
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
740
                        <available file="${wms}" type="dir"/>
741
                </condition>
742
                <ant dir="${wms.Dir}" target="clean" inheritAll="false" />
743
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
744
                        <available file="${dataloc}" type="dir"/>
745
                </condition>
746
                <ant dir="${dataloc}" target="clean" inheritAll="false" />
747
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
748
                        <available file="${geoprocessing}" type="dir"/>
749
                </condition>
750
                <ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false" />
751

    
752
        <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
753
            <available file="${geoprocessingExtensions}" type="dir"/>
754
        </condition>
755
        <ant dir="${geoprocessingExtensions.Dir}" target="clean" inheritAll="false" />
756

    
757
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
758
                        <available file="${georeferencing}" type="dir"/>
759
                </condition>
760
                <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false" />
761
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
762
                        <available file="${rastertools}" type="dir"/>
763
                </condition>
764
                <ant dir="${rastertools.Dir}" target="clean" inheritAll="false" />
765
                <condition property="wfsg.Dir" value="${wfs}" else="scripts/voidTarget">
766
                        <available file="${wfs}" type="dir"/>
767
                </condition>
768
                <ant dir="${wfsg.Dir}" target="clean" inheritAll="false" />
769
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
770
                        <available file="${scripting}" type="dir"/>
771
                </condition>
772
                <ant dir="${scripting.Dir}" target="clean" inheritAll="false" />
773
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
774
                        <available file="${centerview}" type="dir"/>
775
                </condition>
776
                <ant dir="${centerview.Dir}" target="clean" inheritAll="false" />
777
        <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
778
            <available file="${expressionField}" type="dir"/>
779
        </condition>
780
        <ant dir="${expressionField.Dir}" target="clean" inheritAll="false" />
781
        <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
782
            <available file="${annotations}" type="dir"/>
783
        </condition>
784
        <ant dir="${annotations.Dir}" target="clean" inheritAll="false" />
785
        </target>
786

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

    
793
        <target name="install-base"
794
                                description="Generate jars and copy files to Andami for the application (gvSIG+libs). Compilation is supposed to be automatically done by Eclipse" >
795
                <property file="build.number"/>
796
                  <ant dir="${i18n}" inheritAll="false"/>
797
                <ant dir="${utiles}" inheritAll="false"/>
798
                <ant dir="${andami}" inheritAll="false"/>
799
                <ant dir="${libui}" inheritAll="false"/>
800
                <ant dir="${core}" target="import-build-number" inheritAll="false">
801
                        <property name="buildNumberFile" location="build.number"/>
802
                </ant>
803
                <ant dir="${core}" inheritAll="false"/>
804
                <ant dir="${libui_Components}" inheritAll="false"/>
805
                <ant dir="${cms}" inheritAll="false"/>
806
                <ant dir="${libjcrs}" inheritAll="false"/>
807
                <ant dir="${driver}" inheritAll="false"/>
808
                <ant dir="${remote}" inheritAll="false"/>
809
                <ant dir="${gdbms}" inheritAll="false"/>
810
                <ant dir="${fmap}" inheritAll="false"/>
811
                <ant dir="${gvSIG}" inheritAll="false"/>
812
        </target>
813

    
814
        <target name="install-extensions" depends="install-base"
815
                        description="Generate jars and copy files to Andami for the extensions. Compilation is supposed to be automatically done by Eclipse" >
816
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
817
                        <available file="${event}" type="dir"/>
818
                </condition>
819
                <ant dir="${event.Dir}" target="import-build-number" inheritAll="false">
820
                        <property name="buildNumberFile" location="build.number"/>
821
                </ant>
822
                <ant dir="${event.Dir}" inheritAll="false"/>
823
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
824
                        <available file="${libdwg}" type="dir"/>
825
                </condition>
826
                <ant dir="${libdwg.Dir}" inheritAll="false"/>
827
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
828
                        <available file="${extdwg}" type="dir"/>
829
                </condition>
830
                <ant dir="${extdwg.Dir}" inheritAll="false"/>
831
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
832
                        <available file="${jdbc}" type="dir"/>
833
                </condition>
834
                <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false">
835
                        <property name="buildNumberFile" location="build.number"/>
836
                </ant>
837
                <ant dir="${jdbc.Dir}" inheritAll="false"/>
838

    
839
            <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
840
                <available file="${geobd}" type="dir"/>
841
            </condition>
842
            <ant dir="${geobd.Dir}" target="import-build-number" inheritAll="false">
843
                <property name="buildNumberFile" location="build.number"/>
844
            </ant>
845
            <ant dir="${geobd.Dir}" inheritAll="false"/>
846
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
847
                        <available file="${cad}" type="dir"/>
848
                </condition>
849
                <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false">
850
                        <property name="buildNumberFile" location="build.number"/>
851
                </ant>
852
                <ant dir="${cad.Dir}" inheritAll="false"/>
853
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
854
                        <available file="${appcatalog}" type="dir"/>
855
                </condition>
856
                <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false">
857
                        <property name="buildNumberFile" location="build.number"/>
858
                </ant>
859
                <ant dir="${appcatalog.Dir}" inheritAll="false"/>
860
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
861
                        <available file="${catalog}" type="dir"/>
862
                </condition>
863
                <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false">
864
                        <property name="buildNumberFile" location="build.number"/>
865
                </ant>
866
                <ant dir="${catalog.Dir}" inheritAll="false"/>
867
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
868
                        <available file="${wcs}" type="dir"/>
869
                </condition>
870
                <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false">
871
                        <property name="buildNumberFile" location="build.number"/>
872
                </ant>
873
                <ant dir="${wcs.Dir}" inheritAll="false"/>
874
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
875
                        <available file="${wms}" type="dir"/>
876
                </condition>
877
                <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false">
878
                        <property name="buildNumberFile" location="build.number"/>
879
                </ant>
880
                <ant dir="${wms.Dir}" inheritAll="false"/>
881
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
882
                        <available file="${dataloc}" type="dir"/>
883
                </condition>
884
                <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false">
885
                        <property name="buildNumberFile" location="build.number"/>
886
                </ant>
887
                <ant dir="${dataloc.Dir}" inheritAll="false"/>
888
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
889
                        <available file="${geoprocessing}" type="dir"/>
890
                </condition>
891
                <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false">
892
                        <property name="buildNumberFile" location="build.number"/>
893
                </ant>
894
                <ant dir="${geoprocessing.Dir}" inheritAll="false"/>
895
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
896
                        <available file="${geoprocessingExtensions}" type="dir"/>
897
                </condition>
898
                <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false">
899
                        <property name="buildNumberFile" location="build.number"/>
900
                </ant>
901
                <ant dir="${geoprocessingExtensions.Dir}" inheritAll="false"/>
902
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
903
                        <available file="${georeferencing}" type="dir"/>
904
                </condition>
905
                <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false">
906
                        <property name="buildNumberFile" location="build.number"/>
907
                </ant>
908
                <ant dir="${georeferencing.Dir}" inheritAll="false"/>
909
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
910
                        <available file="${wfs}" type="dir"/>
911
                </condition>
912
                <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false">
913
                        <property name="buildNumberFile" location="build.number"/>
914
                </ant>
915
                <ant dir="${rastertools.Dir}" inheritAll="false"/>
916
                <condition property="wfs.Dir" value="${wfs}" else="scripts/voidTarget">
917
                        <available file="${wfs}" type="dir"/>
918
                </condition>
919
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
920
                        <property name="buildNumberFile" location="build.number"/>
921
                </ant>
922
                <ant dir="${wfs.Dir}" inheritAll="false"/>
923
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
924
                        <available file="${centerview}" type="dir"/>
925
                </condition>
926
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
927
                        <property name="buildNumberFile" location="build.number"/>
928
                </ant>
929
                <ant dir="${centerview.Dir}" inheritAll="false"/>
930
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
931
                        <available file="${scripting}" type="dir"/>
932
                </condition>
933
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
934
                        <property name="buildNumberFile" location="build.number"/>
935
                </ant>
936
                <ant dir="${scripting.Dir}" inheritAll="false"/>
937

    
938
                <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
939
                        <available file="${expressionField}" type="dir"/>
940
                </condition>
941
                <ant dir="${expressionField.Dir}" target="import-build-number" inheritAll="false">
942
                        <property name="buildNumberFile" location="build.number"/>
943
                </ant>
944
                <ant dir="${expressionField.Dir}" inheritAll="false"/>
945

    
946
            <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
947
                <available file="${annotations}" type="dir"/>
948
            </condition>
949
           <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
950
                <property name="buildNumberFile" location="build.number"/>
951
            </ant>
952
            <ant dir="${annotations.Dir}" inheritAll="false"/>
953

    
954
            <condition property="extjcrs.Dir" value="${extjcrs}" else="scripts/voidTarget">
955
                <available file="${extjcrs}" type="dir"/>
956
            </condition>
957
           <ant dir="${extjcrs.Dir}" target="import-build-number" inheritAll="false">
958
                <property name="buildNumberFile" location="build.number"/>
959
            </ant>
960
            <ant dir="${extjcrs.Dir}" inheritAll="false"/>
961

    
962
            <condition property="libArcIMS.Dir" value="${libArcIMS}" else="scripts/voidTarget">
963
                <available file="${libArcIMS}" type="dir"/>
964
            </condition>
965
            <ant dir="${libArcIMS.Dir}" inheritAll="false"/>
966

    
967
            <condition property="Arcims.Dir" value="${Arcims}" else="scripts/voidTarget">
968
                <available file="${Arcims}" type="dir"/>
969
            </condition>
970
           <ant dir="${Arcims.Dir}" target="import-build-number" inheritAll="false">
971
                <property name="buildNumberFile" location="build.number"/>
972
            </ant>
973
            <ant dir="${Arcims.Dir}" inheritAll="false"/>
974

    
975
        </target>
976

    
977

    
978

    
979
        <!-- The download targets are still no working well (or maybe not working at all...) -->
980
        <target name="download"
981
                        description="Not working yet. Downloads all the projects from the CVS HEAD"
982
                        depends="download-base, download-extensions">
983
        </target>
984

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

    
989
                <!-- andami -->
990
                <cvs
991
                        dest="${downloadDir}"
992
                        package="gvSIG-project/frameworks/_fwAndami"
993
                        cvsRoot=":extssh:www.gvsig.org:/var/lib/cvs-gvSIG" />
994

    
995
                <move todir="${andami}">
996
                        <fileset dir="${downloadDir}/gvSIG-project/frameworks/_fwAndami"/>
997
                </move>
998

    
999
                <!-- we have to do the same for the rest of the projects -->
1000
        </target>
1001

    
1002
        <target name="download-extensions" description="Not working yet. It will download the extensions">
1003
        </target>
1004

    
1005
</project>
1006