Statistics
| Revision:

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

History | View | Annotate | Download (47.7 KB)

1
<project name="appgvSIG" default="dist" basedir=".">
2
    <description>
3
        Instala el plugin
4
    </description>
5
        <!-- set global properties for this build -->
6
        <!-- <property name="buildDate" value="20041018"/> -->
7
        <property name="version" value="1.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
        <property name="libGPE" location="../libGPE"/>
374
        <property name="libGPE-GML" location="../libGPE-GML"/>
375
        <property name="libGPE-KML" location="../libGPE-KML"/>
376
        <property name="GPE-gvSIG" location="../extGPE-gvSIG"/>
377

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

    
593
                <condition property="libGPE-GML.Dir" value="${libGPE-GML}" else="scripts/voidTarget">
594
                        <available file="${libGPE-GML}" type="dir"/>
595
                </condition>
596
                <ant dir="${libGPE-GML.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
                </ant>
603

    
604
                <condition property="libGPE-KML.Dir" value="${libGPE-KML}" else="scripts/voidTarget">
605
                        <available file="${libGPE-KML}" type="dir"/>
606
                </condition>
607
                <ant dir="${libGPE-KML.Dir}" target="batch-build" inheritAll="false">
608
                        <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
609
                        <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
610
                        <property name="debug" value="${debug}"/>
611
                        <property name="debuglevel" value="${debuglevel}"/>
612
                        <property name="encoding" value="ISO_8859_1"/>
613
                </ant>
614

    
615

    
616

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

    
631
                <condition property="wfs.Dir" value="${wfs}" else="scripts/voidTarget">
632
                        <available file="${wfs}" type="dir"/>
633
                </condition>
634
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
635
                        <property name="buildNumberFile" location="build.number"/>
636
                </ant>
637
                <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false">
638
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
639
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
640
                        <property name="debug" value="${debug}"/>
641
                        <property name="debuglevel" value="${debuglevel}"/>
642
                        <property name="encoding" value="ISO_8859_1"/>
643
                </ant>
644
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
645
                        <available file="${centerview}" type="dir"/>
646
                </condition>
647
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
648
                        <property name="buildNumberFile" location="build.number"/>
649
                </ant>
650
                <ant dir="${centerview.Dir}" target="batch-build" inheritAll="false">
651
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
652
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
653
                        <property name="debug" value="${debug}"/>
654
                        <property name="debuglevel" value="${debuglevel}"/>
655
                        <property name="encoding" value="ISO_8859_1"/>
656
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
657
                </ant>
658
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
659
                        <available file="${scripting}" type="dir"/>
660
                </condition>
661
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
662
                        <property name="buildNumberFile" location="build.number"/>
663
                </ant>
664
                <ant dir="${scripting.Dir}" target="batch-build" inheritAll="false">
665
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
666
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
667
                        <property name="debug" value="${debug}"/>
668
                        <property name="debuglevel" value="${debuglevel}"/>
669
                        <property name="encoding" value="ISO_8859_1"/>
670
                </ant>
671

    
672
                 <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
673
                        <available file="${expressionField}" type="dir"/>
674
                </condition>
675
                <ant dir="${expressionField.Dir}" target="import-build-number" inheritAll="false">
676
                        <property name="buildNumberFile" location="build.number"/>
677
                </ant>
678
                <ant dir="${expressionField.Dir}" target="batch-build" inheritAll="false">
679
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
680
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
681
                        <property name="debug" value="${debug}"/>
682
                        <property name="debuglevel" value="${debuglevel}"/>
683
                        <property name="encoding" value="ISO_8859_1"/>
684
                </ant>
685

    
686
        <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
687
            <available file="${annotations}" type="dir"/>
688
        </condition>
689
       <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
690
            <property name="buildNumberFile" location="build.number"/>
691
        </ant>
692
        <ant dir="${annotations.Dir}" target="batch-build" inheritAll="false">
693
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
694
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
695
            <property name="debug" value="${debug}"/>
696
            <property name="debuglevel" value="${debuglevel}"/>
697
            <property name="encoding" value="ISO_8859_1"/>
698
        </ant>
699

    
700
        <condition property="libArcIMS.Dir" value="${libArcIMS}" else="scripts/voidTarget">
701
            <available file="${libArcIMS}" type="dir"/>
702
        </condition>
703
        <ant dir="${libArcIMS.Dir}" target="batch-build" inheritAll="false">
704
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
705
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
706
            <property name="debug" value="${debug}"/>
707
            <property name="debuglevel" value="${debuglevel}"/>
708
            <property name="encoding" value="ISO_8859_1"/>
709
        </ant>
710

    
711
        <condition property="Arcims.Dir" value="${Arcims}" else="scripts/voidTarget">
712
            <available file="${Arcims}" type="dir"/>
713
        </condition>
714
       <ant dir="${Arcims.Dir}" target="import-build-number" inheritAll="false">
715
            <property name="buildNumberFile" location="build.number"/>
716
        </ant>
717
        <ant dir="${Arcims.Dir}" target="batch-build" inheritAll="false">
718
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
719
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
720
            <property name="debug" value="${debug}"/>
721
            <property name="debuglevel" value="${debuglevel}"/>
722
            <property name="encoding" value="ISO_8859_1"/>
723
        </ant>
724
        </target>
725

    
726
        <target name="clean-all"
727
                                depends="clean-base,clean-extensions"
728
                                description="clean up" />
729

    
730
        <target name="clean-base"
731
                description="cleans the base components of gvSIG: appgvSIG + libs">
732
                <!-- Delete the ${build} and ${dist} directory trees -->
733
                <ant dir="${utiles}" target="clean"/>
734
                <ant dir="${i18n}" target="clean"/>
735
                <ant dir="${andami}" target="clean"/>
736
                <ant dir="${core}" target="clean"/>
737
            <ant dir="${libui_Components}" target="clean"/>
738
                <ant dir="${cms}" target="clean"/>
739
                <condition property="libjcrs.Dir" value="${libjcrs}" else="scripts/voidTarget">
740
                        <available file="${libjcrs}" type="dir"/>
741
                </condition>
742
                <ant dir="${libjcrs.Dir}" target="clean"/>
743
                <ant dir="${driver}" target="clean"/>
744
                <ant dir="${remote}" target="clean"/>
745
                <ant dir="${gdbms}" target="clean"/>
746
                <ant dir="${fmap}" target="clean"/>
747
                <ant dir="${gvSIG}" target="clean"/>
748
                <ant dir="${libui}" target="clean"/>
749
        </target>
750

    
751
        <target name="clean-extensions"
752
                description="Clean the extensions">
753
                <condition property="extjcrs.Dir" value="${extjcrs}" else="scripts/voidTarget">
754
                        <available file="${extjcrs}" type="dir"/>
755
                </condition>
756
                <ant dir="${extjcrs}" target="clean"/>
757
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
758
                        <available file="${event}" type="dir"/>
759
                </condition>
760
                <ant dir="${event.Dir}" target="clean" inheritAll="false" />
761
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
762
                        <available file="${libdwg}" type="dir"/>
763
                </condition>
764
                <ant dir="${libdwg.Dir}" target="clean" inheritAll="false" />
765
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
766
                        <available file="${extdwg}" type="dir"/>
767
                </condition>
768
                <ant dir="${extdwg.Dir}" target="clean" inheritAll="false" />
769
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
770
                        <available file="${jdbc}" type="dir"/>
771
                </condition>
772
                <ant dir="${jdbc.Dir}" target="clean" inheritAll="false" />
773
        <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
774
            <available file="${geobd}" type="dir"/>
775
        </condition>
776
        <ant dir="${geobd.Dir}" target="clean" inheritAll="false" />
777
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
778
                        <available file="${cad}" type="dir"/>
779
                </condition>
780
                <ant dir="${cad.Dir}" target="clean" inheritAll="false" />
781
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
782
                        <available file="${appcatalog}" type="dir"/>
783
                </condition>
784
                <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false" />
785
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
786
                        <available file="${catalog}" type="dir"/>
787
                </condition>
788
                <ant dir="${catalog.Dir}" target="clean" inheritAll="false" />
789
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
790
                        <available file="${wcs}" type="dir"/>
791
                </condition>
792
                <ant dir="${wcs.Dir}" target="clean" inheritAll="false" />
793
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
794
                        <available file="${wms}" type="dir"/>
795
                </condition>
796
                <ant dir="${wms.Dir}" target="clean" inheritAll="false" />
797
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
798
                        <available file="${dataloc}" type="dir"/>
799
                </condition>
800
                <ant dir="${dataloc}" target="clean" inheritAll="false" />
801
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
802
                        <available file="${geoprocessing}" type="dir"/>
803
                </condition>
804
                <ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false" />
805

    
806
        <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
807
            <available file="${geoprocessingExtensions}" type="dir"/>
808
        </condition>
809
        <ant dir="${geoprocessingExtensions.Dir}" target="clean" inheritAll="false" />
810

    
811
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
812
                        <available file="${georeferencing}" type="dir"/>
813
                </condition>
814
                <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false" />
815
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
816
                        <available file="${rastertools}" type="dir"/>
817
                </condition>
818
                <ant dir="${rastertools.Dir}" target="clean" inheritAll="false" />
819
                <condition property="wfsg.Dir" value="${wfs}" else="scripts/voidTarget">
820
                        <available file="${wfs}" type="dir"/>
821
                </condition>
822
                <ant dir="${wfsg.Dir}" target="clean" inheritAll="false" />
823
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
824
                        <available file="${scripting}" type="dir"/>
825
                </condition>
826
                <ant dir="${scripting.Dir}" target="clean" inheritAll="false" />
827
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
828
                        <available file="${centerview}" type="dir"/>
829
                </condition>
830
                <ant dir="${centerview.Dir}" target="clean" inheritAll="false" />
831
        <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
832
            <available file="${expressionField}" type="dir"/>
833
        </condition>
834
        <ant dir="${expressionField.Dir}" target="clean" inheritAll="false" />
835
        <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
836
            <available file="${annotations}" type="dir"/>
837
        </condition>
838
        <ant dir="${annotations.Dir}" target="clean" inheritAll="false" />
839
        </target>
840

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

    
847
        <target name="install-base"
848
                                description="Generate jars and copy files to Andami for the application (gvSIG+libs). Compilation is supposed to be automatically done by Eclipse" >
849
                <property file="build.number"/>
850
                  <ant dir="${i18n}" inheritAll="false"/>
851
                <ant dir="${utiles}" inheritAll="false"/>
852
                <ant dir="${andami}" inheritAll="false"/>
853
                <ant dir="${libui}" inheritAll="false"/>
854
                <ant dir="${core}" target="import-build-number" inheritAll="false">
855
                        <property name="buildNumberFile" location="build.number"/>
856
                </ant>
857
                <ant dir="${core}" inheritAll="false"/>
858
                <ant dir="${libui_Components}" inheritAll="false"/>
859
                <ant dir="${cms}" inheritAll="false"/>
860
                <ant dir="${libjcrs}" inheritAll="false"/>
861
                <ant dir="${driver}" inheritAll="false"/>
862
                <ant dir="${remote}" inheritAll="false"/>
863
                <ant dir="${gdbms}" inheritAll="false"/>
864
                <ant dir="${fmap}" inheritAll="false"/>
865
                <ant dir="${gvSIG}" inheritAll="false"/>
866
        </target>
867

    
868
        <target name="install-extensions" depends="install-base"
869
                        description="Generate jars and copy files to Andami for the extensions. Compilation is supposed to be automatically done by Eclipse" >
870
                <condition property="event.Dir" value="${event}" else="scripts/voidTarget">
871
                        <available file="${event}" type="dir"/>
872
                </condition>
873
                <ant dir="${event.Dir}" target="import-build-number" inheritAll="false">
874
                        <property name="buildNumberFile" location="build.number"/>
875
                </ant>
876
                <ant dir="${event.Dir}" inheritAll="false"/>
877
                <condition property="libdwg.Dir" value="${libdwg}" else="scripts/voidTarget">
878
                        <available file="${libdwg}" type="dir"/>
879
                </condition>
880
                <ant dir="${libdwg.Dir}" inheritAll="false"/>
881
                <condition property="extdwg.Dir" value="${extdwg}" else="scripts/voidTarget">
882
                        <available file="${extdwg}" type="dir"/>
883
                </condition>
884
                <ant dir="${extdwg.Dir}" inheritAll="false"/>
885
                <condition property="jdbc.Dir" value="${jdbc}" else="scripts/voidTarget">
886
                        <available file="${jdbc}" type="dir"/>
887
                </condition>
888
                <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false">
889
                        <property name="buildNumberFile" location="build.number"/>
890
                </ant>
891
                <ant dir="${jdbc.Dir}" inheritAll="false"/>
892

    
893
            <condition property="geobd.Dir" value="${geobd}" else="scripts/voidTarget">
894
                <available file="${geobd}" type="dir"/>
895
            </condition>
896
            <ant dir="${geobd.Dir}" target="import-build-number" inheritAll="false">
897
                <property name="buildNumberFile" location="build.number"/>
898
            </ant>
899
            <ant dir="${geobd.Dir}" inheritAll="false"/>
900
                <condition property="cad.Dir" value="${cad}" else="scripts/voidTarget">
901
                        <available file="${cad}" type="dir"/>
902
                </condition>
903
                <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false">
904
                        <property name="buildNumberFile" location="build.number"/>
905
                </ant>
906
                <ant dir="${cad.Dir}" inheritAll="false"/>
907
                <condition property="appcatalog.Dir" value="${appcatalog}" else="scripts/voidTarget">
908
                        <available file="${appcatalog}" type="dir"/>
909
                </condition>
910
                <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false">
911
                        <property name="buildNumberFile" location="build.number"/>
912
                </ant>
913
                <ant dir="${appcatalog.Dir}" inheritAll="false"/>
914
                <condition property="catalog.Dir" value="${catalog}" else="scripts/voidTarget">
915
                        <available file="${catalog}" type="dir"/>
916
                </condition>
917
                <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false">
918
                        <property name="buildNumberFile" location="build.number"/>
919
                </ant>
920
                <ant dir="${catalog.Dir}" inheritAll="false"/>
921
                <condition property="wcs.Dir" value="${wcs}" else="scripts/voidTarget">
922
                        <available file="${wcs}" type="dir"/>
923
                </condition>
924
                <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false">
925
                        <property name="buildNumberFile" location="build.number"/>
926
                </ant>
927
                <ant dir="${wcs.Dir}" inheritAll="false"/>
928
                <condition property="wms.Dir" value="${wms}" else="scripts/voidTarget">
929
                        <available file="${wms}" type="dir"/>
930
                </condition>
931
                <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false">
932
                        <property name="buildNumberFile" location="build.number"/>
933
                </ant>
934
                <ant dir="${wms.Dir}" inheritAll="false"/>
935
                <condition property="dataloc.Dir" value="${dataloc}" else="scripts/voidTarget">
936
                        <available file="${dataloc}" type="dir"/>
937
                </condition>
938
                <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false">
939
                        <property name="buildNumberFile" location="build.number"/>
940
                </ant>
941
                <ant dir="${dataloc.Dir}" inheritAll="false"/>
942
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="scripts/voidTarget">
943
                        <available file="${geoprocessing}" type="dir"/>
944
                </condition>
945
                <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false">
946
                        <property name="buildNumberFile" location="build.number"/>
947
                </ant>
948
                <ant dir="${geoprocessing.Dir}" inheritAll="false"/>
949
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="scripts/voidTarget">
950
                        <available file="${geoprocessingExtensions}" type="dir"/>
951
                </condition>
952
                <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false">
953
                        <property name="buildNumberFile" location="build.number"/>
954
                </ant>
955
                <ant dir="${geoprocessingExtensions.Dir}" inheritAll="false"/>
956
                <condition property="georeferencing.Dir" value="${georeferencing}" else="scripts/voidTarget">
957
                        <available file="${georeferencing}" type="dir"/>
958
                </condition>
959
                <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false">
960
                        <property name="buildNumberFile" location="build.number"/>
961
                </ant>
962
                <ant dir="${georeferencing.Dir}" inheritAll="false"/>
963
                <condition property="rastertools.Dir" value="${rastertools}" else="scripts/voidTarget">
964
                        <available file="${wfs}" type="dir"/>
965
                </condition>
966
                <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false">
967
                        <property name="buildNumberFile" location="build.number"/>
968
                </ant>
969
                <ant dir="${rastertools.Dir}" inheritAll="false"/>
970
                <condition property="wfs.Dir" value="${wfs}" else="scripts/voidTarget">
971
                        <available file="${wfs}" type="dir"/>
972
                </condition>
973
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
974
                        <property name="buildNumberFile" location="build.number"/>
975
                </ant>
976
                <ant dir="${wfs.Dir}" inheritAll="false"/>
977
                <condition property="centerview.Dir" value="${centerview}" else="scripts/voidTarget">
978
                        <available file="${centerview}" type="dir"/>
979
                </condition>
980
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
981
                        <property name="buildNumberFile" location="build.number"/>
982
                </ant>
983
                <ant dir="${centerview.Dir}" inheritAll="false"/>
984
                <condition property="scripting.Dir" value="${scripting}" else="scripts/voidTarget">
985
                        <available file="${scripting}" type="dir"/>
986
                </condition>
987
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
988
                        <property name="buildNumberFile" location="build.number"/>
989
                </ant>
990
                <ant dir="${scripting.Dir}" inheritAll="false"/>
991

    
992
                <condition property="expressionField.Dir" value="${expressionField}" else="scripts/voidTarget">
993
                        <available file="${expressionField}" type="dir"/>
994
                </condition>
995
                <ant dir="${expressionField.Dir}" target="import-build-number" inheritAll="false">
996
                        <property name="buildNumberFile" location="build.number"/>
997
                </ant>
998
                <ant dir="${expressionField.Dir}" inheritAll="false"/>
999

    
1000
            <condition property="annotations.Dir" value="${annotations}" else="scripts/voidTarget">
1001
                <available file="${annotations}" type="dir"/>
1002
            </condition>
1003
           <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
1004
                <property name="buildNumberFile" location="build.number"/>
1005
            </ant>
1006
            <ant dir="${annotations.Dir}" inheritAll="false"/>
1007

    
1008
            <condition property="extjcrs.Dir" value="${extjcrs}" else="scripts/voidTarget">
1009
                <available file="${extjcrs}" type="dir"/>
1010
            </condition>
1011
           <ant dir="${extjcrs.Dir}" target="import-build-number" inheritAll="false">
1012
                <property name="buildNumberFile" location="build.number"/>
1013
            </ant>
1014
            <ant dir="${extjcrs.Dir}" inheritAll="false"/>
1015

    
1016
            <condition property="libArcIMS.Dir" value="${libArcIMS}" else="scripts/voidTarget">
1017
                <available file="${libArcIMS}" type="dir"/>
1018
            </condition>
1019
            <ant dir="${libArcIMS.Dir}" inheritAll="false"/>
1020

    
1021
            <condition property="Arcims.Dir" value="${Arcims}" else="scripts/voidTarget">
1022
                <available file="${Arcims}" type="dir"/>
1023
            </condition>
1024
           <ant dir="${Arcims.Dir}" target="import-build-number" inheritAll="false">
1025
                <property name="buildNumberFile" location="build.number"/>
1026
            </ant>
1027
            <ant dir="${Arcims.Dir}" inheritAll="false"/>
1028

    
1029
        </target>
1030

    
1031

    
1032

    
1033
        <!-- The download targets are still no working well (or maybe not working at all...) -->
1034
        <target name="download"
1035
                        description="Not working yet. Downloads all the projects from the CVS HEAD"
1036
                        depends="download-base, download-extensions">
1037
        </target>
1038

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

    
1043
                <!-- andami -->
1044
                <cvs
1045
                        dest="${downloadDir}"
1046
                        package="gvSIG-project/frameworks/_fwAndami"
1047
                        cvsRoot=":extssh:www.gvsig.org:/var/lib/cvs-gvSIG" />
1048

    
1049
                <move todir="${andami}">
1050
                        <fileset dir="${downloadDir}/gvSIG-project/frameworks/_fwAndami"/>
1051
                </move>
1052

    
1053
                <!-- we have to do the same for the rest of the projects -->
1054
        </target>
1055

    
1056
        <target name="download-extensions" description="Not working yet. It will download the extensions">
1057
        </target>
1058

    
1059
</project>
1060