Statistics
| Revision:

svn-gvsig-desktop / tags / v10_RC2c / applications / appgvSIG / build.xml @ 8745

History | View | Annotate | Download (23.9 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
                
24
        <target name="init">
25
                <!-- Create the time stamp -->
26
                <tstamp/>
27
                <echo>
28
                        Compiling ${ant.project.name}...</echo>
29

    
30
                <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
31
                <!-- <buildnumber/> -->
32
        </target>
33

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

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

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

    
72
                <move todir="${extensionDir}/${plugin}/">
73
                        <fileset dir="${dist}" includes="**/**"/>
74
                </move>
75
        </target>
76

    
77
  <target name="makeZip"
78
          description="Genera un zip con todo lo necesario para ejecutar gvSIG. Actualmente no se usa"
79
          depends="dist">
80
    <!-- Create the distribution directory -->
81
    <mkdir dir="${dist}/${zipName}"/>
82
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/>
83
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/>
84
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/>
85
    <copy todir="${dist}/${zipName}">
86
                <fileset dir="../mdiApp">
87
                        <include name="extensiones/${plugin}/**"/>
88
                        <include name="extensiones/plugin.*"/>
89
                        <include name="plugin.*"/>
90
                </fileset>
91
                <!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
92
                <fileset dir="../mdiApp_v02_estable">
93
                        <include name="lib/**"/>
94
                </fileset>
95
                <fileset dir="distFiles" includes="**/**"/>
96
    </copy>
97
        <zip zipfile="${zipName}.zip">
98
                <fileset dir="${dist}">
99
                        <include name="**/**"/>
100
                </fileset>
101
        </zip>
102
 <!--   <delete dir="${dist}"/> -->
103
  </target>
104
        
105
        <target name="batch-build"
106
                        description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute"
107
                        depends="init,get-fmap-libs,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
108
        </target>
109
        
110
        <target name="compile" description="compile the source">
111
                <!-- Create the time stamp -->
112
                <tstamp/>
113
                <!-- Create the build directory structure used by compile -->
114
                <mkdir dir="${build}"/>
115
                <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
116
                <buildnumber />
117
                <!-- Compile the Java code from ${src} to ${build} -->
118
                <javac  srcdir="${src}"
119
                        destdir="${build}"
120
                        source="1.4"
121
                        target="1.4"
122
                        debug="${debug}"
123
                        debuglevel="${debuglevel}"
124
                        excludes="com/iver/cit/gvsig/test/**">
125
                <classpath refid="appgvSIG.compile-classpath"/>
126
<!--                <classpath refid="_fwAndami.compile-classpath"/> -->
127
                </javac>
128
        </target>        
129

    
130
        <target name="create-jar" description="Creates the jar file">
131
                <mkdir dir="${dist}/lib"/>
132
                <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
133
        </target>
134
        
135
        <target name="copy-libs"
136
                depends="get-fmap-libs">
137
                <mkdir dir="${dist}"/>
138
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
139
                <copy todir="${dist}/lib">
140
                        <fileset dir="./lib" includes="*.jar,*.zip"/>
141
                </copy>
142
        </target>
143
        
144
        <target name="get-fmap-libs">
145
                <copy todir="${dist}/lib">
146
                        <fileset dir="${fmapdir}/lib" includes="*.jar"/>
147
                </copy>
148
                <jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/>
149
                <copy file="${dist}/lib/fmap.jar" todir="${extensionDir}/${plugin}/lib"/>
150
        </target>
151
        
152
        <target name="copy-data-files">
153
        <copy todir="${dist}">
154
                <fileset dir="config" includes="*" />
155
        </copy>
156
                <copy file="build.number" todir="${dist}"/>
157
                <copy todir="${dist}/images">
158
                        <fileset dir="images/" includes="*"/>
159
                </copy>
160
                <copy todir="${dist}/northimages">
161
                        <fileset dir="northimages/" includes="*"/>
162
                </copy>
163
    </target>
164
        
165
        <target name="move-to-andami" description="Moves the build directory to andami">
166
                <move todir="${extensionDir}/${plugin}/">
167
                        <fileset dir="${dist}" includes="**/**"/>
168
                </move>
169
        </target>
170

    
171
        <target name="clean"
172
                        description="clean up" >
173
                <!-- Delete the ${build} and ${dist} directory trees -->
174
                <delete dir="${build}"/>
175
<!--                <delete dir="${dist}"/> -->
176
        </target>
177
        
178
        
179
        <!-- the global build starts here -->
180
        <property name="andami" location="../_fwAndami"/>
181
        <property name="utiles" location="../libIverUtiles"/>
182
        <property name="core" location="../libCorePlugin"/>
183
        <property name="driver" location="../libDriverManager"/>
184
        <property name="cms" location="../libCq CMS for java"/>
185
        <property name="fmap" location="../libFMap"/>
186
        <property name="gvSIG" location="../appgvSIG"/>
187
        <property name="remote" location="../libRemoteServices"/>
188
        <property name="gdbms" location="../libGDBMS"/>
189
        <property name="i18n" location="../libInternationalization"/>
190
        <property name="global.installBaseDir" location="${andami}"/>
191

    
192
        <target name="build-all"
193
                                depends="debug-no,base,extensions"
194
                                description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" />
195
        
196
        <target name="eclipse-build-all"
197
                                        depends="debug-yes,base,extensions"
198
                                        description="Builds the application, including extensions, producing debug info" />
199
        
200
        <target name="debug-yes">
201
                <property name="debug" value="on"/>
202
                <property name="debuglevel" value="lines, vars"/>
203
        </target>
204
        
205
        <target name="debug-no">
206
                <property name="debug" value="off"/>
207
        </target>
208
        
209
        <target name="eclipse-base" depends="debug-yes,base" />
210
        <target name="eclipse-extensions" depends="debug-yes,base,extensions" />
211
        
212
        <target name="base"
213
                        description="Builds the application, excluding extensions">
214
                  <ant dir="${i18n}" target="batch-build" inheritAll="false">
215
                        <property name="debug" value="${debug}"/>
216
                        <property name="debuglevel" value="${debuglevel}"/>
217
                        <property name="encoding" value="ISO_8859_1"/>
218
                </ant>
219
                <ant dir="${utiles}" target="batch-build" inheritAll="false">
220
                        <property name="debug" value="${debug}"/>
221
                        <property name="debuglevel" value="${debuglevel}"/>
222
                        <property name="encoding" value="ISO_8859_1"/>
223
                </ant>
224
                <ant dir="${andami}" target="batch-build"  inheritAll="false">
225
                        <property name="debug" value="${debug}"/>
226
                        <property name="debuglevel" value="${debuglevel}"/>
227
                        <property name="encoding" value="ISO_8859_1"/>
228
                </ant>
229
                <ant dir="${libui}" target="batch-build" inheritAll="false">
230
                        <property name="debug" value="${debug}"/>
231
                        <property name="debuglevel" value="${debuglevel}"/>
232
                <property name="installBaseDir" value="${global.installBaseDir}"/>
233
                        <property name="encoding" value="ISO_8859_1"/>
234
                </ant>
235
                <ant dir="${core}" target="batch-build"  inheritAll="false">
236
                        <property name="debug" value="${debug}"/>
237
                        <property name="debuglevel" value="${debuglevel}"/>
238
                        <property name="encoding" value="ISO_8859_1"/>
239
                </ant>
240
                <ant dir="${cms}" target="batch-build"  inheritAll="false">
241
                        <property name="debug" value="${debug}"/>
242
                        <property name="debuglevel" value="${debuglevel}"/>
243
                        <property name="encoding" value="ISO_8859_1"/>
244
                </ant>
245
                <ant dir="${driver}" target="batch-build"  inheritAll="false">
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="${remote}" target="batch-build"  inheritAll="false">
251
                        <property name="debug" value="${debug}"/>
252
                        <property name="debuglevel" value="${debuglevel}"/>
253
                        <property name="encoding" value="ISO_8859_1"/>
254
                </ant>
255
                <ant dir="${gdbms}" target="batch-build" inheritAll="false">
256
                        <property name="debug" value="${debug}"/>
257
                        <property name="debuglevel" value="${debuglevel}"/>
258
                        <property name="encoding" value="ISO_8859_1"/>
259
                </ant>
260
                <ant dir="${fmap}" target="batch-build"  inheritAll="false">
261
                        <property name="debug" value="${debug}"/>
262
                        <property name="debuglevel" value="${debuglevel}"/>
263
                        <property name="encoding" value="ISO_8859_1"/>
264
                </ant>
265
                <ant dir="${gvSIG}" target="batch-build"  inheritAll="false">
266
                        <property name="debug" value="${debug}"/>
267
                        <property name="debuglevel" value="${debuglevel}"/>
268
                        <property name="encoding" value="ISO_8859_1"/>
269
                </ant>
270
        </target>
271
        
272
        <property name="appcatalog" location="../appCatalogYNomenclatorClient"/>
273
        <property name="catalog" location="../extCatalogYNomenclator"/>
274
        <property name="dataloc" location="../extDataLocator"/>
275
        <property name="event" location="../extAddEventTheme"/>
276
        <property name="libdwg" location="../libDwg"/>
277
        <property name="extdwg" location="../extDwg"/>
278
        <property name="cad" location="../extCAD"/>
279
        <property name="geoprocessing" location="../extGeoProcessing"/>
280
        <property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
281
        <property name="georeferencing" location="../extGeoreferencing"/>
282
        <property name="jdbc" location="../extJDBC"/>
283
        <property name="rastertools" location="../extRasterTools"/>
284
        <property name="wcs" location="../extWCS"/>
285
        <property name="wfs" location="../extWFS2"/>
286
        <property name="wms" location="../extWMS"/>
287
        <property name="scripting" location="../extScripting"/>
288
        <property name="centerview" location="../extCenterViewToPoint"/>
289
        <property name="libui" location="../libUI"/>
290

    
291
        
292
        <target name="extensions" depends="base">
293
                <condition property="event.Dir" value="${event}" else="voidTarget">
294
                        <available file="${event}" type="dir"/>
295
                </condition>
296
                <ant dir="${event.Dir}" target="batch-build" inheritAll="false">
297
                        <property name="debug" value="${debug}"/>
298
                        <property name="debuglevel" value="${debuglevel}"/>
299
                        <property name="encoding" value="ISO_8859_1"/>
300
                </ant>
301
                <condition property="libdwg.Dir" value="${libdwg}" else="voidTarget">
302
                        <available file="${libdwg}" type="dir"/>
303
                </condition>
304
                <ant dir="${libdwg.Dir}" target="batch-build" inheritAll="false">
305
                        <property name="debug" value="${debug}"/>
306
                        <property name="debuglevel" value="${debuglevel}"/>
307
                        <property name="encoding" value="ISO_8859_1"/>
308
                </ant>
309
                <condition property="extdwg.Dir" value="${extdwg}" else="voidTarget">
310
                        <available file="${extdwg}" type="dir"/>
311
                </condition>
312
                <ant dir="${extdwg.Dir}" target="batch-build" inheritAll="false">
313
                        <property name="debug" value="${debug}"/>
314
                        <property name="debuglevel" value="${debuglevel}"/>
315
                        <property name="encoding" value="ISO_8859_1"/>
316
                </ant>
317
                <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget">
318
                        <available file="${jdbc}" type="dir"/>
319
                </condition>
320
                <ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false">
321
                        <property name="debug" value="${debug}"/>
322
                        <property name="debuglevel" value="${debuglevel}"/>
323
                        <property name="encoding" value="ISO_8859_1"/>
324
                </ant>
325
                <condition property="cad.Dir" value="${cad}" else="voidTarget">
326
                        <available file="${cad}" type="dir"/>
327
                </condition>
328
                <ant dir="${cad.Dir}" target="batch-build" inheritAll="false">
329
                        <property name="debug" value="${debug}"/>
330
                        <property name="debuglevel" value="${debuglevel}"/>
331
                        <property name="encoding" value="ISO_8859_1"/>
332
                </ant>
333
                <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget">
334
                        <available file="${appcatalog}" type="dir"/>
335
                </condition>
336
                <ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false">
337
                        <property name="debug" value="${debug}"/>
338
                        <property name="debuglevel" value="${debuglevel}"/>
339
                        <property name="encoding" value="ISO_8859_1"/>
340
                </ant>
341
                <condition property="catalog.Dir" value="${catalog}" else="voidTarget">
342
                        <available file="${catalog}" type="dir"/>
343
                </condition>
344
                <ant dir="${catalog.Dir}" target="batch-build" inheritAll="false">
345
                        <property name="debug" value="${debug}"/>
346
                        <property name="debuglevel" value="${debuglevel}"/>
347
                        <property name="encoding" value="ISO_8859_1"/>
348
                </ant>
349
                <condition property="wcs.Dir" value="${wcs}" else="voidTarget">
350
                        <available file="${wcs}" type="dir"/>
351
                </condition>
352
                <ant dir="${wcs.Dir}" target="batch-build" inheritAll="false">
353
                        <property name="debug" value="${debug}"/>
354
                        <property name="debuglevel" value="${debuglevel}"/>
355
                        <property name="encoding" value="ISO_8859_1"/>
356
                </ant>
357
                <condition property="wms.Dir" value="${wms}" else="voidTarget">
358
                        <available file="${wms}" type="dir"/>
359
                </condition>
360
                <ant dir="${wms.Dir}" target="batch-build" inheritAll="false">
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="dataloc.Dir" value="${dataloc}" else="voidTarget">
366
                        <available file="${dataloc}" type="dir"/>
367
                </condition>
368
                <ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false">
369
                        <property name="debug" value="${debug}"/>
370
                        <property name="debuglevel" value="${debuglevel}"/>
371
                        <property name="encoding" value="ISO_8859_1"/>
372
                </ant>
373
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget">
374
                        <available file="${geoprocessing}" type="dir"/>
375
                </condition>
376
                <ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false">
377
                        <property name="debug" value="${debug}"/>
378
                        <property name="debuglevel" value="${debuglevel}"/>
379
                        <property name="encoding" value="ISO_8859_1"/>
380
                </ant>
381
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget">
382
                        <available file="${geoprocessingExtensions}" type="dir"/>
383
                </condition>
384
                <ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false">
385
                        <property name="debug" value="${debug}"/>
386
                        <property name="debuglevel" value="${debuglevel}"/>
387
                        <property name="encoding" value="ISO_8859_1"/>
388
                </ant>
389
                <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget">
390
                        <available file="${georeferencing}" type="dir"/>
391
                </condition>
392
                <ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false">
393
                        <property name="debug" value="${debug}"/>
394
                        <property name="debuglevel" value="${debuglevel}"/>
395
                        <property name="encoding" value="ISO_8859_1"/>
396
                </ant>
397
                <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget">
398
                        <available file="${wfs}" type="dir"/>
399
                </condition>
400
                <ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false">
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="wfs.Dir" value="${wfs}" else="voidTarget">
406
                        <available file="${wfs}" type="dir"/>
407
                </condition>
408
                <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false">
409
                        <property name="debug" value="${debug}"/>
410
                        <property name="debuglevel" value="${debuglevel}"/>
411
                        <property name="encoding" value="ISO_8859_1"/>
412
                </ant>
413
                <condition property="centerview.Dir" value="${centerview}" else="voidTarget">
414
                        <available file="${centerview}" type="dir"/>
415
                </condition>
416
                <ant dir="${centerview.Dir}" target="batch-build" inheritAll="false">
417
                        <property name="debug" value="${debug}"/>
418
                        <property name="debuglevel" value="${debuglevel}"/>
419
                        <property name="encoding" value="ISO_8859_1"/>
420
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
421
                </ant>
422
                <condition property="scripting.Dir" value="${scripting}" else="voidTarget">
423
                        <available file="${scripting}" type="dir"/>
424
                </condition>
425
                <ant dir="${scripting.Dir}" target="batch-build" inheritAll="false">
426
                        <property name="debug" value="${debug}"/>
427
                        <property name="debuglevel" value="${debuglevel}"/>
428
                        <property name="encoding" value="ISO_8859_1"/>
429
                </ant>
430
        </target>
431
        
432
        <target name="clean-all"
433
                                depends="clean-base,clean-extensions"
434
                                description="clean up" />
435
        
436
        <target name="clean-base"
437
                description="cleans the base components of gvSIG: appgvSIG + libs">
438
                <!-- Delete the ${build} and ${dist} directory trees -->
439
                <ant dir="${utiles}" target="clean"/>
440
                <ant dir="${i18n}" target="clean"/>
441
                <ant dir="${andami}" target="clean"/>
442
                <ant dir="${core}" target="clean"/>
443
                <ant dir="${cms}" target="clean"/>
444
                <ant dir="${driver}" target="clean"/>
445
                <ant dir="${remote}" target="clean"/>
446
                <ant dir="${gdbms}" target="clean"/>
447
                <ant dir="${fmap}" target="clean"/>
448
                <ant dir="${gvSIG}" target="clean"/>
449
                <ant dir="${libui}" target="clean"/>
450
        </target>
451
        
452
        <target name="clean-extensions"
453
                description="Clean the extensions">
454
                <condition property="event.Dir" value="${event}" else="voidTarget">
455
                        <available file="${event}" type="dir"/>
456
                </condition>
457
                <ant dir="${event.Dir}" target="clean" inheritAll="false" />
458
                <condition property="libdwg.Dir" value="${libdwg}" else="voidTarget">
459
                        <available file="${libdwg}" type="dir"/>
460
                </condition>
461
                <ant dir="${libdwg.Dir}" target="clean" inheritAll="false" />
462
                <condition property="extdwg.Dir" value="${extdwg}" else="voidTarget">
463
                        <available file="${extdwg}" type="dir"/>
464
                </condition>
465
                <ant dir="${extdwg.Dir}" target="clean" inheritAll="false" />
466
                <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget">
467
                        <available file="${jdbc}" type="dir"/>
468
                </condition>                
469
                <ant dir="${jdbc.Dir}" target="clean" inheritAll="false" />
470
                <condition property="cad.Dir" value="${cad}" else="voidTarget">
471
                        <available file="${cad}" type="dir"/>
472
                </condition>
473
                <ant dir="${cad.Dir}" target="clean" inheritAll="false" />
474
                <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget">
475
                        <available file="${appcatalog}" type="dir"/>
476
                </condition>
477
                <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false" />
478
                <condition property="catalog.Dir" value="${catalog}" else="voidTarget">
479
                        <available file="${catalog}" type="dir"/>
480
                </condition>
481
                <ant dir="${catalog.Dir}" target="clean" inheritAll="false" />
482
                <condition property="wcs.Dir" value="${wcs}" else="voidTarget">
483
                        <available file="${wcs}" type="dir"/>
484
                </condition>
485
                <ant dir="${wcs.Dir}" target="clean" inheritAll="false" />
486
                <condition property="wms.Dir" value="${wms}" else="voidTarget">
487
                        <available file="${wms}" type="dir"/>
488
                </condition>
489
                <ant dir="${wms.Dir}" target="clean" inheritAll="false" />
490
                <condition property="dataloc.Dir" value="${dataloc}" else="voidTarget">
491
                        <available file="${dataloc}" type="dir"/>
492
                </condition>
493
                <ant dir="${dataloc}" target="clean" inheritAll="false" />
494
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget">
495
                        <available file="${geoprocessing}" type="dir"/>
496
                </condition>
497
                <ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false" />
498
                <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget">
499
                        <available file="${georeferencing}" type="dir"/>
500
                </condition>
501
                <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false" />
502
                <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget">
503
                        <available file="${rastertools}" type="dir"/>
504
                </condition>
505
                <ant dir="${rastertools.Dir}" target="clean" inheritAll="false" />
506
                <condition property="wfsg.Dir" value="${wfs}" else="voidTarget">
507
                        <available file="${wfs}" type="dir"/>
508
                </condition>
509
                <ant dir="${wfsg.Dir}" target="clean" inheritAll="false" />
510
                <condition property="scripting.Dir" value="${scripting}" else="voidTarget">
511
                        <available file="${scripting}" type="dir"/>
512
                </condition>
513
                <ant dir="${scripting.Dir}" target="clean" inheritAll="false" />
514
                <condition property="centerview.Dir" value="${centerview}" else="voidTarget">
515
                        <available file="${centerview}" type="dir"/>
516
                </condition>
517
                <ant dir="${centerview.Dir}" target="clean" inheritAll="false" />
518
        </target>
519

    
520
        <!-- Those targets don't compile, they just generate the jars and copy files to
521
        andami. The compilation is supposed to be done by Eclipse  -->
522
        <target name="install-all"
523
                                        depends="install-base,install-extensions"
524
                                        description="Generate jars and copy files to Andami for the whole application (gvSIG+libs+extensions). Compilation is supposed to be automatically done by Eclipse" />
525
                
526
        <target name="install-base"
527
                                description="Generate jars and copy files to Andami for the application (gvSIG+libs). Compilation is supposed to be automatically done by Eclipse" >
528
                <ant dir="${utiles}" inheritAll="false" />
529
                <ant dir="${i18n}" inheritAll="false" />
530
                <ant dir="${andami}" inheritAll="false" />
531
                <ant dir="${core}" inheritAll="false" />
532
                <ant dir="${cms}" inheritAll="false" />
533
                <ant dir="${driver}" inheritAll="false" />
534
                <ant dir="${remote}" inheritAll="false" />
535
                <ant dir="${gdbms}" inheritAll="false" />
536
                <ant dir="${fmap}" inheritAll="false" />
537
                <ant dir="${gvSIG}" inheritAll="false" />
538
                <!--                <ant dir="${libui}" inheritAll="false" /> -->
539
        </target>
540
                
541
        <target name="install-extensions" depends="base"
542
                        description="Generate jars and copy files to Andami for the extensions. Compilation is supposed to be automatically done by Eclipse" >
543
                <ant dir="${event}" inheritAll="false" />
544
                <ant dir="${libdwg}" inheritAll="false" />
545
                <ant dir="${extdwg}" inheritAll="false" />
546
                <ant dir="${jdbc}" inheritAll="false" />
547
                <ant dir="${cad}" inheritAll="false" />
548
                <ant dir="${appcatalog}" inheritAll="false" />
549
                <ant dir="${catalog}" inheritAll="false" />
550
                <ant dir="${wcs}" inheritAll="false" />
551
                <ant dir="${wms}" inheritAll="false" />
552
                <ant dir="${dataloc}" inheritAll="false" />
553
                <ant dir="${geoprocessing}" inheritAll="false" />
554
                <ant dir="${georeferencing}" inheritAll="false" />
555
                <ant dir="${rastertools}" inheritAll="false" />
556
                <ant dir="${wfs}" inheritAll="false" />
557
                <ant dir="${scripting}" inheritAll="false" />
558
                <ant dir="${centerview}" inheritAll="false" />        
559
        </target>
560

    
561
        
562
        
563
        <!-- The download targets are still no working well (or maybe not working at all...) -->
564
        <target name="download"
565
                        description="Not working yet. Downloads all the projects from the CVS HEAD"
566
                        depends="download-base, download-extensions">
567
        </target>
568

    
569
        <target name="download-base" description="Not working yet. It will download the base projects required to build gvSIG">
570
                <property name="downloadDir" value="tmp-download"/>
571
                <mkdir dir="${downloadDir}" />
572
                
573
                <!-- andami -->
574
                <cvs
575
                        dest="${downloadDir}"
576
                        package="gvSIG-project/frameworks/_fwAndami"
577
                        cvsRoot=":extssh:www.gvsig.org:/var/lib/cvs-gvSIG" />
578

    
579
                <move todir="${andami}">
580
                        <fileset dir="${downloadDir}/gvSIG-project/frameworks/_fwAndami"/>
581
                </move>
582
                
583
                <!-- we have to do the same for the rest of the projects -->
584
        </target>
585
        
586
        <target name="download-extensions" description="Not working yet. It will download the extensions">
587
        </target>
588

    
589
</project>
590