Statistics
| Revision:

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

History | View | Annotate | Download (43.8 KB)

1
<project name="appgvSIG" default="dist" basedir=".">
2
    <description>
3
        Instala el plugin
4
    </description>
5
        <!-- set global properties for this build -->
6
        <!-- <property name="buildDate" value="20041018"/> -->
7
        <property name="version" value="1.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
        </target>
134

    
135
        <target name="create-jar" description="Creates the jar file">
136
                <mkdir dir="${dist}/lib"/>
137
                <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
138
        </target>
139

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

    
149
        <target name="get-fmap-libs">
150
                <copy todir="${dist}/lib">
151
                        <fileset dir="${fmapdir}/lib" includes="*.jar"/>
152
                </copy>
153
                <jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/>
154
                <copy file="${dist}/lib/fmap.jar" todir="${extensionDir}/${plugin}/lib"/>
155
        </target>
156

    
157
        <target name="copy-data-files">
158
        <copy todir="${dist}">
159
                <fileset dir="config" includes="*" />
160
        </copy>
161
                <copy file="build.number" todir="${dist}"/>
162
                <copy todir="${dist}/images">
163
                        <fileset dir="images/" includes="*"/>
164
                </copy>
165
                <copy todir="${dist}/northimages">
166
                        <fileset dir="northimages/" includes="*"/>
167
                </copy>
168
    </target>
169

    
170
        <target name="move-to-andami" description="Moves the build directory to andami">
171
                <move todir="${extensionDir}/${plugin}/">
172
                        <fileset dir="${dist}" includes="**/**"/>
173
                </move>
174
        </target>
175

    
176
        <target name="clean"
177
                        description="clean up" >
178
                <!-- Delete the ${build} and ${dist} directory trees -->
179
                <delete dir="${build}"/>
180
<!--                <delete dir="${dist}"/> -->
181
        </target>
182

    
183

    
184
        <!-- the global build starts here -->
185
        <property name="andami" location="../_fwAndami"/>
186
        <property name="utiles" location="../libIverUtiles"/>
187
        <property name="core" location="../libCorePlugin"/>
188
        <property name="driver" location="../libDriverManager"/>
189
        <property name="cms" location="../libCq CMS for java"/>
190
        <!--<property name="cms" location="../libCq_CMS_praster"/>    -->   
191
        <property name="fmap" location="../libFMap"/>
192
        <property name="gvSIG" location="../appgvSIG"/>
193
        <property name="remote" location="../libRemoteServices"/>
194
        <property name="gdbms" location="../libGDBMS"/>
195
        <property name="i18n" location="../libInternationalization"/>
196
        <property name="global.installBaseDir" location="${andami}"/>
197

    
198

    
199
    <target name="make-binary-distribution"
200
            description="Prepare a binary distribution of the application. This increments the build number and then makes a global build"
201
            depends="clean_andami_gvSIG,buildNumber,build-all">
202
    </target>
203

    
204
    <target name="clean_andami_gvSIG"
205
            description="clean up the gvSIG andami deploy">
206
        <delete dir="${andami}/gvSIG" failonerror="false"/>
207
    </target>
208

    
209

    
210

    
211
        <target name="buildNumber"
212
                                description="Generates the build.number for the application">
213
                <propertyfile
214
                                file="build.number"
215
                                comment="Build Number for ANT. Do not edit!">
216
                        <entry  key="build.number" default="0" type="int" operation="+" pattern="0000"/>
217
                </propertyfile>
218
        </target>
219

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

    
224
        <target name="eclipse-build-all"
225
                                        depends="debug-yes,base,extensions"
226
                                        description="Builds the application, including extensions, producing debug info" />
227

    
228
        <target name="debug-yes">
229
                <property name="debug" value="on"/>
230
                <property name="debuglevel" value="lines, vars"/>
231
        </target>
232

    
233
        <target name="debug-no">
234
                <property name="debug" value="off"/>
235
        </target>
236

    
237
        <target name="eclipse-base" depends="debug-yes,base" />
238
        <target name="eclipse-extensions" depends="debug-yes,base,extensions" />
239

    
240
        <target name="base"
241
                        description="Builds the application, excluding extensions">
242
                <property file="build.number"/>
243
                  <ant dir="${i18n}" target="batch-build" inheritAll="false">
244
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
245
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
246
                        <property name="debug" value="${debug}"/>
247
                        <property name="debuglevel" value="${debuglevel}"/>
248
                        <property name="encoding" value="ISO_8859_1"/>
249
                </ant>
250
                <ant dir="${utiles}" target="batch-build" inheritAll="false">
251
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
252
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
253
                        <property name="debug" value="${debug}"/>
254
                        <property name="debuglevel" value="${debuglevel}"/>
255
                        <property name="encoding" value="ISO_8859_1"/>
256
                </ant>
257
                <ant dir="${andami}" target="batch-build"  inheritAll="false">
258
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
259
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
260
                        <property name="debug" value="${debug}"/>
261
                        <property name="debuglevel" value="${debuglevel}"/>
262
                        <property name="encoding" value="ISO_8859_1"/>
263
                </ant>
264
                <ant dir="${libui}" target="batch-build" inheritAll="false">
265
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
266
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
267
                        <property name="debug" value="${debug}"/>
268
                        <property name="debuglevel" value="${debuglevel}"/>
269
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
270
                        <property name="encoding" value="ISO_8859_1"/>
271
                </ant>
272
                <ant dir="${core}" target="import-build-number" inheritAll="false">
273
                        <property name="buildNumberFile" location="build.number"/>
274
                </ant>
275
                <ant dir="${core}" target="batch-build"  inheritAll="false">
276
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
277
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
278
                        <property name="debug" value="${debug}"/>
279
                        <property name="debuglevel" value="${debuglevel}"/>
280
                        <property name="encoding" value="ISO_8859_1"/>
281
                </ant>
282
                <ant dir="${cms}" target="batch-build"  inheritAll="false">
283
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
284
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
285
                        <property name="debug" value="${debug}"/>
286
                        <property name="debuglevel" value="${debuglevel}"/>
287
                        <property name="encoding" value="ISO_8859_1"/>
288
                </ant>
289
                <ant dir="${driver}" target="batch-build"  inheritAll="false">
290
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
291
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
292
                        <property name="debug" value="${debug}"/>
293
                        <property name="debuglevel" value="${debuglevel}"/>
294
                        <property name="encoding" value="ISO_8859_1"/>
295
                </ant>
296
                <ant dir="${remote}" target="batch-build"  inheritAll="false">
297
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
298
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
299
                        <property name="debug" value="${debug}"/>
300
                        <property name="debuglevel" value="${debuglevel}"/>
301
                        <property name="encoding" value="ISO_8859_1"/>
302
                </ant>
303
                <ant dir="${gdbms}" target="batch-build" inheritAll="false">
304
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
305
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
306
                        <property name="debug" value="${debug}"/>
307
                        <property name="debuglevel" value="${debuglevel}"/>
308
                        <property name="encoding" value="ISO_8859_1"/>
309
                </ant>
310
                <ant dir="${fmap}" target="batch-build"  inheritAll="false">
311
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
312
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
313
                        <property name="debug" value="${debug}"/>
314
                        <property name="debuglevel" value="${debuglevel}"/>
315
                        <property name="encoding" value="ISO_8859_1"/>
316
                </ant>
317
                <ant dir="${gvSIG}" target="batch-build"  inheritAll="false">
318
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
319
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
320
                        <property name="debug" value="${debug}"/>
321
                        <property name="debuglevel" value="${debuglevel}"/>
322
                        <property name="encoding" value="ISO_8859_1"/>
323
                </ant>
324
        </target>
325

    
326
        <property name="appcatalog" location="../appCatalogYNomenclatorClient"/>
327
        <property name="catalog" location="../extCatalogYNomenclator"/>
328
        <property name="dataloc" location="../extDataLocator"/>
329
        <property name="event" location="../extAddEventTheme"/>
330
        <property name="libdwg" location="../libDwg"/>
331
        <property name="extdwg" location="../extDwg"/>
332
        <property name="cad" location="../extCAD"/>
333
        <property name="geoprocessing" location="../extGeoProcessing"/>
334
        <property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
335
        <property name="georeferencing" location="../extGeoreferencing"/>
336
        <property name="jdbc" location="../extJDBC"/>
337
        <property name="rastertools" location="../extRasterTools"/>
338
        <property name="wcs" location="../extWCS"/>
339
        <property name="wfs" location="../extWFS2"/>
340
        <property name="wms" location="../extWMS"/>
341
        <property name="scripting" location="../extScripting"/>
342
        <property name="centerview" location="../extCenterViewToPoint"/>
343
        <property name="libui" location="../libUI"/>
344
        <property name="expressionField" location="../extExpresionField"/>
345
    <property name="annotations" location="../extAnnotations"/>
346
    <property name="geobd" location="../extOracleSpatial"/>
347
    <property name="jcrs" location="../extJCRS_binaries"/>
348
    <property name="libArcIMS" location="../libArcIMS"/>
349
    <property name="Arcims" location="../extArcims"/>
350

    
351
        <target name="extensions" depends="base">
352
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
353
                        <available file="${event}" type="dir"/>
354
                </condition>
355
                <ant dir="${event.Dir}" target="import-build-number" inheritAll="false">
356
                        <property name="buildNumberFile" location="build.number"/>
357
                </ant>
358
                <ant dir="${event.Dir}" target="batch-build" inheritAll="false">
359
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
360
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
361
                        <property name="debug" value="${debug}"/>
362
                        <property name="debuglevel" value="${debuglevel}"/>
363
                        <property name="encoding" value="ISO_8859_1"/>
364
                </ant>
365
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
366
                        <available file="${libdwg}" type="dir"/>
367
                </condition>
368
                <ant dir="${libdwg.Dir}" target="batch-build" inheritAll="false">
369
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
370
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
371
                        <property name="debug" value="${debug}"/>
372
                        <property name="debuglevel" value="${debuglevel}"/>
373
                        <property name="encoding" value="ISO_8859_1"/>
374
                </ant>
375
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
376
                        <available file="${extdwg}" type="dir"/>
377
                </condition>
378
                <ant dir="${extdwg.Dir}" target="batch-build" inheritAll="false">
379
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
380
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
381
                        <property name="debug" value="${debug}"/>
382
                        <property name="debuglevel" value="${debuglevel}"/>
383
                        <property name="encoding" value="ISO_8859_1"/>
384
                </ant>
385
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
386
                        <available file="${jdbc}" type="dir"/>
387
                </condition>
388
                <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false">
389
                        <property name="buildNumberFile" location="build.number"/>
390
                </ant>
391
                <ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false">
392
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
393
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
394
                        <property name="debug" value="${debug}"/>
395
                        <property name="debuglevel" value="${debuglevel}"/>
396
                        <property name="encoding" value="ISO_8859_1"/>
397
                </ant>
398
        <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
399
            <available file="${geobd}" type="dir"/>
400
        </condition>
401
        <ant dir="${geobd.Dir}" target="import-build-number" inheritAll="false">
402
            <property name="buildNumberFile" location="build.number"/>
403
        </ant>
404
        <ant dir="${geobd.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="cad.Dir" value="${cad}" else="scripts/voidTarget">
412
                        <available file="${cad}" type="dir"/>
413
                </condition>
414
                <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false">
415
                        <property name="buildNumberFile" location="build.number"/>
416
                </ant>
417
                <ant dir="${cad.Dir}" target="batch-build" inheritAll="false">
418
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
419
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
420
                        <property name="debug" value="${debug}"/>
421
                        <property name="debuglevel" value="${debuglevel}"/>
422
                        <property name="encoding" value="ISO_8859_1"/>
423
                </ant>
424
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
425
                        <available file="${appcatalog}" type="dir"/>
426
                </condition>
427
                <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false">
428
                        <property name="buildNumberFile" location="build.number"/>
429
                </ant>
430
                <ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false">
431
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
432
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
433
                        <property name="debug" value="${debug}"/>
434
                        <property name="debuglevel" value="${debuglevel}"/>
435
                        <property name="encoding" value="ISO_8859_1"/>
436
                </ant>
437
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
438
                        <available file="${catalog}" type="dir"/>
439
                </condition>
440
                <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false">
441
                        <property name="buildNumberFile" location="build.number"/>
442
                </ant>
443
                <ant dir="${catalog.Dir}" target="batch-build" inheritAll="false">
444
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
445
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
446
                        <property name="debug" value="${debug}"/>
447
                        <property name="debuglevel" value="${debuglevel}"/>
448
                        <property name="encoding" value="ISO_8859_1"/>
449
                </ant>
450
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
451
                        <available file="${wcs}" type="dir"/>
452
                </condition>
453
                <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false">
454
                        <property name="buildNumberFile" location="build.number"/>
455
                </ant>
456
                <ant dir="${wcs.Dir}" target="batch-build" inheritAll="false">
457
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
458
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
459
                        <property name="debug" value="${debug}"/>
460
                        <property name="debuglevel" value="${debuglevel}"/>
461
                        <property name="encoding" value="ISO_8859_1"/>
462
                </ant>
463
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
464
                        <available file="${wms}" type="dir"/>
465
                </condition>
466
                <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false">
467
                        <property name="buildNumberFile" location="build.number"/>
468
                </ant>
469
                <ant dir="${wms.Dir}" target="batch-build" inheritAll="false">
470
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
471
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
472
                        <property name="debug" value="${debug}"/>
473
                        <property name="debuglevel" value="${debuglevel}"/>
474
                        <property name="encoding" value="ISO_8859_1"/>
475
                </ant>
476
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
477
                        <available file="${dataloc}" type="dir"/>
478
                </condition>
479
                <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false">
480
                        <property name="buildNumberFile" location="build.number"/>
481
                </ant>
482
                <ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false">
483
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
484
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
485
                        <property name="debug" value="${debug}"/>
486
                        <property name="debuglevel" value="${debuglevel}"/>
487
                        <property name="encoding" value="ISO_8859_1"/>
488
                </ant>
489
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
490
                        <available file="${geoprocessing}" type="dir"/>
491
                </condition>
492
                <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false">
493
                        <property name="buildNumberFile" location="build.number"/>
494
                </ant>
495
                <ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false">
496
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
497
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
498
                        <property name="debug" value="${debug}"/>
499
                        <property name="debuglevel" value="${debuglevel}"/>
500
                        <property name="encoding" value="ISO_8859_1"/>
501
                </ant>
502
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
503
                        <available file="${geoprocessingExtensions}" type="dir"/>
504
                </condition>
505
                <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false">
506
                        <property name="buildNumberFile" location="build.number"/>
507
                </ant>
508
                <ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false">
509
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
510
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
511
                        <property name="debug" value="${debug}"/>
512
                        <property name="debuglevel" value="${debuglevel}"/>
513
                        <property name="encoding" value="ISO_8859_1"/>
514
                </ant>
515
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
516
                        <available file="${georeferencing}" type="dir"/>
517
                </condition>
518
                <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false">
519
                        <property name="buildNumberFile" location="build.number"/>
520
                </ant>
521
                <ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false">
522
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
523
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
524
                        <property name="debug" value="${debug}"/>
525
                        <property name="debuglevel" value="${debuglevel}"/>
526
                        <property name="encoding" value="ISO_8859_1"/>
527
                </ant>
528
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
529
                        <available file="${wfs}" type="dir"/>
530
                </condition>
531
                <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false">
532
                        <property name="buildNumberFile" location="build.number"/>
533
                </ant>
534
                <ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false">
535
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
536
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
537
                        <property name="debug" value="${debug}"/>
538
                        <property name="debuglevel" value="${debuglevel}"/>
539
                        <property name="encoding" value="ISO_8859_1"/>
540
                </ant>
541
                <condition property="wfs.Dir" value="${wfs}" else="scripts/voidTarget">
542
                        <available file="${wfs}" type="dir"/>
543
                </condition>
544
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
545
                        <property name="buildNumberFile" location="build.number"/>
546
                </ant>
547
                <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false">
548
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
549
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
550
                        <property name="debug" value="${debug}"/>
551
                        <property name="debuglevel" value="${debuglevel}"/>
552
                        <property name="encoding" value="ISO_8859_1"/>
553
                </ant>
554
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
555
                        <available file="${centerview}" type="dir"/>
556
                </condition>
557
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
558
                        <property name="buildNumberFile" location="build.number"/>
559
                </ant>
560
                <ant dir="${centerview.Dir}" target="batch-build" inheritAll="false">
561
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
562
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
563
                        <property name="debug" value="${debug}"/>
564
                        <property name="debuglevel" value="${debuglevel}"/>
565
                        <property name="encoding" value="ISO_8859_1"/>
566
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
567
                </ant>
568
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
569
                        <available file="${scripting}" type="dir"/>
570
                </condition>
571
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
572
                        <property name="buildNumberFile" location="build.number"/>
573
                </ant>
574
                <ant dir="${scripting.Dir}" target="batch-build" inheritAll="false">
575
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
576
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
577
                        <property name="debug" value="${debug}"/>
578
                        <property name="debuglevel" value="${debuglevel}"/>
579
                        <property name="encoding" value="ISO_8859_1"/>
580
                </ant>
581

    
582
                 <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
583
                        <available file="${expressionField}" type="dir"/>
584
                </condition>
585
                <ant dir="${expressionField.Dir}" target="import-build-number" inheritAll="false">
586
                        <property name="buildNumberFile" location="build.number"/>
587
                </ant>
588
                <ant dir="${expressionField.Dir}" target="batch-build" inheritAll="false">
589
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
590
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
591
                        <property name="debug" value="${debug}"/>
592
                        <property name="debuglevel" value="${debuglevel}"/>
593
                        <property name="encoding" value="ISO_8859_1"/>
594
                </ant>
595

    
596
        <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
597
            <available file="${annotations}" type="dir"/>
598
        </condition>
599
       <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
600
            <property name="buildNumberFile" location="build.number"/>
601
        </ant>
602
        <ant dir="${annotations.Dir}" target="batch-build" inheritAll="false">
603
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
604
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
605
            <property name="debug" value="${debug}"/>
606
            <property name="debuglevel" value="${debuglevel}"/>
607
            <property name="encoding" value="ISO_8859_1"/>
608
        </ant>
609

    
610
        <condition property="jcrs.Dir" value="${jcrs}" else="scripts/voidTarget">
611
            <available file="${jcrs}" type="dir"/>
612
        </condition>
613
       <ant dir="${jcrs.Dir}" target="import-build-number" inheritAll="false">
614
            <property name="buildNumberFile" location="build.number"/>
615
        </ant>
616
        <ant dir="${jcrs.Dir}" target="batch-build" inheritAll="false">
617
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
618
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
619
            <property name="debug" value="${debug}"/>
620
            <property name="debuglevel" value="${debuglevel}"/>
621
            <property name="encoding" value="ISO_8859_1"/>
622
        </ant>
623

    
624
        <condition property="libArcIMS.Dir" value="${libArcIMS}" else="scripts/voidTarget">
625
            <available file="${libArcIMS}" type="dir"/>
626
        </condition>
627
        <ant dir="${libArcIMS.Dir}" target="batch-build" inheritAll="false">
628
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
629
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
630
            <property name="debug" value="${debug}"/>
631
            <property name="debuglevel" value="${debuglevel}"/>
632
            <property name="encoding" value="ISO_8859_1"/>
633
        </ant>
634

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

    
650
        <target name="clean-all"
651
                                depends="clean-base,clean-extensions"
652
                                description="clean up" />
653

    
654
        <target name="clean-base"
655
                description="cleans the base components of gvSIG: appgvSIG + libs">
656
                <!-- Delete the ${build} and ${dist} directory trees -->
657
                <ant dir="${utiles}" target="clean"/>
658
                <ant dir="${i18n}" target="clean"/>
659
                <ant dir="${andami}" target="clean"/>
660
                <ant dir="${core}" target="clean"/>
661
                <ant dir="${cms}" target="clean"/>
662
                <ant dir="${driver}" target="clean"/>
663
                <ant dir="${remote}" target="clean"/>
664
                <ant dir="${gdbms}" target="clean"/>
665
                <ant dir="${fmap}" target="clean"/>
666
                <ant dir="${gvSIG}" target="clean"/>
667
                <ant dir="${libui}" target="clean"/>
668
        </target>
669

    
670
        <target name="clean-extensions"
671
                description="Clean the extensions">
672
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
673
                        <available file="${event}" type="dir"/>
674
                </condition>
675
                <ant dir="${event.Dir}" target="clean" inheritAll="false" />
676
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
677
                        <available file="${libdwg}" type="dir"/>
678
                </condition>
679
                <ant dir="${libdwg.Dir}" target="clean" inheritAll="false" />
680
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
681
                        <available file="${extdwg}" type="dir"/>
682
                </condition>
683
                <ant dir="${extdwg.Dir}" target="clean" inheritAll="false" />
684
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
685
                        <available file="${jdbc}" type="dir"/>
686
                </condition>
687
                <ant dir="${jdbc.Dir}" target="clean" inheritAll="false" />
688
        <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
689
            <available file="${geobd}" type="dir"/>
690
        </condition>
691
        <ant dir="${geobd.Dir}" target="clean" inheritAll="false" />
692
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
693
                        <available file="${cad}" type="dir"/>
694
                </condition>
695
                <ant dir="${cad.Dir}" target="clean" inheritAll="false" />
696
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
697
                        <available file="${appcatalog}" type="dir"/>
698
                </condition>
699
                <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false" />
700
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
701
                        <available file="${catalog}" type="dir"/>
702
                </condition>
703
                <ant dir="${catalog.Dir}" target="clean" inheritAll="false" />
704
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
705
                        <available file="${wcs}" type="dir"/>
706
                </condition>
707
                <ant dir="${wcs.Dir}" target="clean" inheritAll="false" />
708
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
709
                        <available file="${wms}" type="dir"/>
710
                </condition>
711
                <ant dir="${wms.Dir}" target="clean" inheritAll="false" />
712
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
713
                        <available file="${dataloc}" type="dir"/>
714
                </condition>
715
                <ant dir="${dataloc}" target="clean" inheritAll="false" />
716
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
717
                        <available file="${geoprocessing}" type="dir"/>
718
                </condition>
719
                <ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false" />
720

    
721
        <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
722
            <available file="${geoprocessingExtensions}" type="dir"/>
723
        </condition>
724
        <ant dir="${geoprocessingExtensions.Dir}" target="clean" inheritAll="false" />
725

    
726
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
727
                        <available file="${georeferencing}" type="dir"/>
728
                </condition>
729
                <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false" />
730
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
731
                        <available file="${rastertools}" type="dir"/>
732
                </condition>
733
                <ant dir="${rastertools.Dir}" target="clean" inheritAll="false" />
734
                <condition property="wfsg.Dir" value="${wfs}" else="scripts/voidTarget">
735
                        <available file="${wfs}" type="dir"/>
736
                </condition>
737
                <ant dir="${wfsg.Dir}" target="clean" inheritAll="false" />
738
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
739
                        <available file="${scripting}" type="dir"/>
740
                </condition>
741
                <ant dir="${scripting.Dir}" target="clean" inheritAll="false" />
742
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
743
                        <available file="${centerview}" type="dir"/>
744
                </condition>
745
                <ant dir="${centerview.Dir}" target="clean" inheritAll="false" />
746
        <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
747
            <available file="${expressionField}" type="dir"/>
748
        </condition>
749
        <ant dir="${expressionField.Dir}" target="clean" inheritAll="false" />
750
        <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
751
            <available file="${annotations}" type="dir"/>
752
        </condition>
753
        <ant dir="${annotations.Dir}" target="clean" inheritAll="false" />
754
        </target>
755

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

    
762
        <target name="install-base"
763
                                description="Generate jars and copy files to Andami for the application (gvSIG+libs). Compilation is supposed to be automatically done by Eclipse" >
764
                <property file="build.number"/>
765
                  <ant dir="${i18n}" inheritAll="false"/>
766
                <ant dir="${utiles}" inheritAll="false"/>
767
                <ant dir="${andami}" inheritAll="false"/>
768
                <ant dir="${libui}" inheritAll="false"/>
769
                <ant dir="${core}" target="import-build-number" inheritAll="false">
770
                        <property name="buildNumberFile" location="build.number"/>
771
                </ant>
772
                <ant dir="${core}" inheritAll="false"/>
773
                <ant dir="${cms}" inheritAll="false"/>
774
                <ant dir="${driver}" inheritAll="false"/>
775
                <ant dir="${remote}" inheritAll="false"/>
776
                <ant dir="${gdbms}" inheritAll="false"/>
777
                <ant dir="${fmap}" inheritAll="false"/>
778
                <ant dir="${gvSIG}" inheritAll="false"/>
779
        </target>
780

    
781
        <target name="install-extensions" depends="install-base"
782
                        description="Generate jars and copy files to Andami for the extensions. Compilation is supposed to be automatically done by Eclipse" >
783
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
784
                        <available file="${event}" type="dir"/>
785
                </condition>
786
                <ant dir="${event.Dir}" target="import-build-number" inheritAll="false">
787
                        <property name="buildNumberFile" location="build.number"/>
788
                </ant>
789
                <ant dir="${event.Dir}" inheritAll="false"/>
790
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
791
                        <available file="${libdwg}" type="dir"/>
792
                </condition>
793
                <ant dir="${libdwg.Dir}" inheritAll="false"/>
794
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
795
                        <available file="${extdwg}" type="dir"/>
796
                </condition>
797
                <ant dir="${extdwg.Dir}" inheritAll="false"/>
798
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
799
                        <available file="${jdbc}" type="dir"/>
800
                </condition>
801
                <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false">
802
                        <property name="buildNumberFile" location="build.number"/>
803
                </ant>
804
                <ant dir="${jdbc.Dir}" inheritAll="false"/>
805

    
806
            <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
807
                <available file="${geobd}" type="dir"/>
808
            </condition>
809
            <ant dir="${geobd.Dir}" target="import-build-number" inheritAll="false">
810
                <property name="buildNumberFile" location="build.number"/>
811
            </ant>
812
            <ant dir="${geobd.Dir}" inheritAll="false"/>
813
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
814
                        <available file="${cad}" type="dir"/>
815
                </condition>
816
                <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false">
817
                        <property name="buildNumberFile" location="build.number"/>
818
                </ant>
819
                <ant dir="${cad.Dir}" inheritAll="false"/>
820
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
821
                        <available file="${appcatalog}" type="dir"/>
822
                </condition>
823
                <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false">
824
                        <property name="buildNumberFile" location="build.number"/>
825
                </ant>
826
                <ant dir="${appcatalog.Dir}" inheritAll="false"/>
827
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
828
                        <available file="${catalog}" type="dir"/>
829
                </condition>
830
                <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false">
831
                        <property name="buildNumberFile" location="build.number"/>
832
                </ant>
833
                <ant dir="${catalog.Dir}" inheritAll="false"/>
834
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
835
                        <available file="${wcs}" type="dir"/>
836
                </condition>
837
                <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false">
838
                        <property name="buildNumberFile" location="build.number"/>
839
                </ant>
840
                <ant dir="${wcs.Dir}" inheritAll="false"/>
841
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
842
                        <available file="${wms}" type="dir"/>
843
                </condition>
844
                <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false">
845
                        <property name="buildNumberFile" location="build.number"/>
846
                </ant>
847
                <ant dir="${wms.Dir}" inheritAll="false"/>
848
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
849
                        <available file="${dataloc}" type="dir"/>
850
                </condition>
851
                <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false">
852
                        <property name="buildNumberFile" location="build.number"/>
853
                </ant>
854
                <ant dir="${dataloc.Dir}" inheritAll="false"/>
855
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
856
                        <available file="${geoprocessing}" type="dir"/>
857
                </condition>
858
                <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false">
859
                        <property name="buildNumberFile" location="build.number"/>
860
                </ant>
861
                <ant dir="${geoprocessing.Dir}" inheritAll="false"/>
862
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
863
                        <available file="${geoprocessingExtensions}" type="dir"/>
864
                </condition>
865
                <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false">
866
                        <property name="buildNumberFile" location="build.number"/>
867
                </ant>
868
                <ant dir="${geoprocessingExtensions.Dir}" inheritAll="false"/>
869
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
870
                        <available file="${georeferencing}" type="dir"/>
871
                </condition>
872
                <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false">
873
                        <property name="buildNumberFile" location="build.number"/>
874
                </ant>
875
                <ant dir="${georeferencing.Dir}" inheritAll="false"/>
876
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
877
                        <available file="${wfs}" type="dir"/>
878
                </condition>
879
                <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false">
880
                        <property name="buildNumberFile" location="build.number"/>
881
                </ant>
882
                <ant dir="${rastertools.Dir}" inheritAll="false"/>
883
                <condition property="wfs.Dir" value="${wfs}" else="scripts/voidTarget">
884
                        <available file="${wfs}" type="dir"/>
885
                </condition>
886
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
887
                        <property name="buildNumberFile" location="build.number"/>
888
                </ant>
889
                <ant dir="${wfs.Dir}" inheritAll="false"/>
890
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
891
                        <available file="${centerview}" type="dir"/>
892
                </condition>
893
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
894
                        <property name="buildNumberFile" location="build.number"/>
895
                </ant>
896
                <ant dir="${centerview.Dir}" inheritAll="false"/>
897
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
898
                        <available file="${scripting}" type="dir"/>
899
                </condition>
900
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
901
                        <property name="buildNumberFile" location="build.number"/>
902
                </ant>
903
                <ant dir="${scripting.Dir}" inheritAll="false"/>
904

    
905
                <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
906
                        <available file="${expressionField}" type="dir"/>
907
                </condition>
908
                <ant dir="${expressionField.Dir}" target="import-build-number" inheritAll="false">
909
                        <property name="buildNumberFile" location="build.number"/>
910
                </ant>
911
                <ant dir="${expressionField.Dir}" inheritAll="false"/>
912

    
913
            <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
914
                <available file="${annotations}" type="dir"/>
915
            </condition>
916
           <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
917
                <property name="buildNumberFile" location="build.number"/>
918
            </ant>
919
            <ant dir="${annotations.Dir}" inheritAll="false"/>
920

    
921
            <condition property="jcrs.Dir" value="${jcrs}" else="scripts/voidTarget">
922
                <available file="${jcrs}" type="dir"/>
923
            </condition>
924
           <ant dir="${jcrs.Dir}" target="import-build-number" inheritAll="false">
925
                <property name="buildNumberFile" location="build.number"/>
926
            </ant>
927
            <ant dir="${jcrs.Dir}" inheritAll="false"/>
928

    
929
            <condition property="libArcIMS.Dir" value="${libArcIMS}" else="scripts/voidTarget">
930
                <available file="${libArcIMS}" type="dir"/>
931
            </condition>
932
            <ant dir="${libArcIMS.Dir}" inheritAll="false"/>
933

    
934
            <condition property="Arcims.Dir" value="${Arcims}" else="scripts/voidTarget">
935
                <available file="${Arcims}" type="dir"/>
936
            </condition>
937
           <ant dir="${Arcims.Dir}" target="import-build-number" inheritAll="false">
938
                <property name="buildNumberFile" location="build.number"/>
939
            </ant>
940
            <ant dir="${Arcims.Dir}" inheritAll="false"/>
941

    
942
        </target>
943

    
944

    
945

    
946
        <!-- The download targets are still no working well (or maybe not working at all...) -->
947
        <target name="download"
948
                        description="Not working yet. Downloads all the projects from the CVS HEAD"
949
                        depends="download-base, download-extensions">
950
        </target>
951

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

    
956
                <!-- andami -->
957
                <cvs
958
                        dest="${downloadDir}"
959
                        package="gvSIG-project/frameworks/_fwAndami"
960
                        cvsRoot=":extssh:www.gvsig.org:/var/lib/cvs-gvSIG" />
961

    
962
                <move todir="${andami}">
963
                        <fileset dir="${downloadDir}/gvSIG-project/frameworks/_fwAndami"/>
964
                </move>
965

    
966
                <!-- we have to do the same for the rest of the projects -->
967
        </target>
968

    
969
        <target name="download-extensions" description="Not working yet. It will download the extensions">
970
        </target>
971

    
972
</project>
973