Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1002 / applications / appgvSIG / build.xml @ 32257

History | View | Annotate | Download (43.2 KB)

1 7209 cesar
<project name="appgvSIG" default="dist" basedir=".">
2 312 fernando
    <description>
3
        Instala el plugin
4
    </description>
5 4907 cesar
        <!-- 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 7720 cesar
        <import file="compile-classpath.xml"/>
21 8047 cesar
        <import file="../_fwAndami/compile-classpath.xml"/>
22 4907 cesar
        <property name="build-doc" value="build-doc"/>
23 10565 jmvivo
        <property name="JavaSourceVersion" value="1.4"/>
24 12057 jmvivo
        <property name="JavaTargetVersion" value="1.5"/>
25 5631 cesar
26 4907 cesar
        <target name="init">
27
                <!-- Create the time stamp -->
28
                <tstamp/>
29 7209 cesar
                <echo>
30
                        Compiling ${ant.project.name}...</echo>
31 8047 cesar
32 10185 jmvivo
                <property file="build.number"/>
33 4907 cesar
                <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
34
                <!-- <buildnumber/> -->
35
        </target>
36 4143 caballero
37 4907 cesar
        <target name="build-doc" depends="" description="Genera un zip con la documentación">
38
                <javadoc
39
                        packagenames="com.iver.cit.gvsig.*"
40
                        sourcepath="src"
41
                        defaultexcludes="yes"
42
                        destdir="${build-doc}/gvSIG-api"
43
                        windowtitle="gvSIG API">
44
                </javadoc>
45
        </target>
46 4143 caballero
47 4907 cesar
        <target name="dist"
48
                                depends="init"
49 7209 cesar
                                description="Generate the distribution of the gvSIG plugin. To build just the appgvSIG project from Eclipse " >
50 4907 cesar
                <!-- Create the distribution directory -->
51
                <mkdir dir="${dist}"/>
52 312 fernando
53 4907 cesar
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
54
                <copy todir="${dist}/lib">
55
                        <fileset dir="./lib" includes="*.jar,*.zip"/>
56
                </copy>
57
                <copy todir="${dist}/lib">
58
                        <fileset dir="${fmapdir}/lib" includes="*.jar"/>
59
                </copy>
60
                <jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/>
61
                <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
62
                <copy file="config/config.xml" todir="${dist}"/>
63
                <copy file="config/about.htm" todir="${dist}"/>
64
                <copy file="build.number" todir="${dist}"/>
65
                <copy todir="${dist}">
66 5489 cesar
                        <fileset dir="config" includes="text*.properties"/>
67 4907 cesar
                </copy>
68
                <copy todir="${dist}/images">
69
                        <fileset dir="images/" includes="*"/>
70
                </copy>
71
                <copy todir="${dist}/northimages">
72
                        <fileset dir="northimages/" includes="*"/>
73
                </copy>
74 312 fernando
75 4907 cesar
                <move todir="${extensionDir}/${plugin}/">
76
                        <fileset dir="${dist}" includes="**/**"/>
77
                </move>
78
        </target>
79 312 fernando
80
  <target name="makeZip"
81 7209 cesar
          description="Genera un zip con todo lo necesario para ejecutar gvSIG. Actualmente no se usa"
82 312 fernando
          depends="dist">
83
    <!-- Create the distribution directory -->
84
    <mkdir dir="${dist}/${zipName}"/>
85
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/>
86
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/>
87
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/>
88
    <copy todir="${dist}/${zipName}">
89
                <fileset dir="../mdiApp">
90
                        <include name="extensiones/${plugin}/**"/>
91
                        <include name="extensiones/plugin.*"/>
92
                        <include name="plugin.*"/>
93 4143 caballero
                </fileset>
94 312 fernando
                <!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
95 660 luisw
                <fileset dir="../mdiApp_v02_estable">
96 312 fernando
                        <include name="lib/**"/>
97 4143 caballero
                </fileset>
98 312 fernando
                <fileset dir="distFiles" includes="**/**"/>
99
    </copy>
100
        <zip zipfile="${zipName}.zip">
101
                <fileset dir="${dist}">
102
                        <include name="**/**"/>
103
                </fileset>
104
        </zip>
105 6846 ppiqueras
 <!--   <delete dir="${dist}"/> -->
106 312 fernando
  </target>
107 4907 cesar
108 10185 jmvivo
        <target name="make-binary-distribution"
109
                        description="Prepare a binary distribution of the application. This increments the build number and then makes a global build"
110
                        depends="buildNumber,build-all">
111
        </target>
112
113 4907 cesar
        <target name="batch-build"
114 7209 cesar
                        description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute"
115
                        depends="init,get-fmap-libs,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
116 4907 cesar
        </target>
117
118
        <target name="compile" description="compile the source">
119
                <!-- Create the time stamp -->
120
                <tstamp/>
121
                <!-- Create the build directory structure used by compile -->
122
                <mkdir dir="${build}"/>
123
                <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
124 10185 jmvivo
                <!-- <buildnumber />-->
125 4907 cesar
                <!-- Compile the Java code from ${src} to ${build} -->
126
                <javac  srcdir="${src}"
127
                        destdir="${build}"
128 10565 jmvivo
                        source="${JavaSourceVersion}"
129
                        target="${JavaTargetVersion}"
130 6296 cesar
                        debug="${debug}"
131
                        debuglevel="${debuglevel}"
132 7720 cesar
                        excludes="com/iver/cit/gvsig/test/**">
133
                <classpath refid="appgvSIG.compile-classpath"/>
134 8047 cesar
<!--                <classpath refid="_fwAndami.compile-classpath"/> -->
135 7720 cesar
                </javac>
136 4907 cesar
        </target>
137 312 fernando
138 4907 cesar
        <target name="create-jar" description="Creates the jar file">
139
                <mkdir dir="${dist}/lib"/>
140
                <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
141
        </target>
142
143
        <target name="copy-libs"
144
                depends="get-fmap-libs">
145
                <mkdir dir="${dist}"/>
146
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
147
                <copy todir="${dist}/lib">
148
                        <fileset dir="./lib" includes="*.jar,*.zip"/>
149
                </copy>
150
        </target>
151
152
        <target name="get-fmap-libs">
153
                <copy todir="${dist}/lib">
154
                        <fileset dir="${fmapdir}/lib" includes="*.jar"/>
155
                </copy>
156
                <jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/>
157
                <copy file="${dist}/lib/fmap.jar" todir="${extensionDir}/${plugin}/lib"/>
158
        </target>
159
160
        <target name="copy-data-files">
161 5489 cesar
        <copy todir="${dist}">
162
                <fileset dir="config" includes="*" />
163
        </copy>
164 4907 cesar
                <copy file="build.number" todir="${dist}"/>
165
                <copy todir="${dist}/images">
166
                        <fileset dir="images/" includes="*"/>
167
                </copy>
168
                <copy todir="${dist}/northimages">
169
                        <fileset dir="northimages/" includes="*"/>
170
                </copy>
171
    </target>
172
173
        <target name="move-to-andami" description="Moves the build directory to andami">
174
                <move todir="${extensionDir}/${plugin}/">
175
                        <fileset dir="${dist}" includes="**/**"/>
176
                </move>
177
        </target>
178
179
        <target name="clean"
180
                        description="clean up" >
181
                <!-- Delete the ${build} and ${dist} directory trees -->
182
                <delete dir="${build}"/>
183 6846 ppiqueras
<!--                <delete dir="${dist}"/> -->
184 4907 cesar
        </target>
185 5849 cesar
186
187
        <!-- the global build starts here -->
188
        <property name="andami" location="../_fwAndami"/>
189
        <property name="utiles" location="../libIverUtiles"/>
190
        <property name="core" location="../libCorePlugin"/>
191
        <property name="driver" location="../libDriverManager"/>
192 12057 jmvivo
        <property name="cms" location="../libCq CMS for java"/>
193
        <!--<property name="cms" location="../libCq_CMS_praster"/>    -->
194 5849 cesar
        <property name="fmap" location="../libFMap"/>
195
        <property name="gvSIG" location="../appgvSIG"/>
196
        <property name="remote" location="../libRemoteServices"/>
197
        <property name="gdbms" location="../libGDBMS"/>
198
        <property name="i18n" location="../libInternationalization"/>
199 6296 cesar
        <property name="global.installBaseDir" location="${andami}"/>
200 10185 jmvivo
201
        <target name="buildNumber"
202
                                description="Generates the build.number for the application">
203
                <propertyfile
204
                                file="build.number"
205
                                comment="Build Number for ANT. Do not edit!">
206 11982 jmvivo
                        <entry  key="build.number" default="0" type="int" operation="+" pattern="0000"/>
207 10185 jmvivo
                </propertyfile>
208
        </target>
209 5849 cesar
210
        <target name="build-all"
211 7209 cesar
                                depends="debug-no,base,extensions"
212
                                description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" />
213 5849 cesar
214 6296 cesar
        <target name="eclipse-build-all"
215 7209 cesar
                                        depends="debug-yes,base,extensions"
216 6296 cesar
                                        description="Builds the application, including extensions, producing debug info" />
217
218
        <target name="debug-yes">
219
                <property name="debug" value="on"/>
220
                <property name="debuglevel" value="lines, vars"/>
221
        </target>
222
223
        <target name="debug-no">
224
                <property name="debug" value="off"/>
225
        </target>
226
227 6360 cesar
        <target name="eclipse-base" depends="debug-yes,base" />
228
        <target name="eclipse-extensions" depends="debug-yes,base,extensions" />
229
230 5849 cesar
        <target name="base"
231
                        description="Builds the application, excluding extensions">
232 10185 jmvivo
                <property file="build.number"/>
233 7209 cesar
                  <ant dir="${i18n}" target="batch-build" inheritAll="false">
234 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
235
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
236 6296 cesar
                        <property name="debug" value="${debug}"/>
237
                        <property name="debuglevel" value="${debuglevel}"/>
238
                        <property name="encoding" value="ISO_8859_1"/>
239
                </ant>
240 7209 cesar
                <ant dir="${utiles}" target="batch-build" inheritAll="false">
241 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
242
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
243 6296 cesar
                        <property name="debug" value="${debug}"/>
244
                        <property name="debuglevel" value="${debuglevel}"/>
245
                        <property name="encoding" value="ISO_8859_1"/>
246
                </ant>
247
                <ant dir="${andami}" target="batch-build"  inheritAll="false">
248 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
249
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
250 6296 cesar
                        <property name="debug" value="${debug}"/>
251
                        <property name="debuglevel" value="${debuglevel}"/>
252
                        <property name="encoding" value="ISO_8859_1"/>
253
                </ant>
254
                <ant dir="${libui}" target="batch-build" inheritAll="false">
255 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
256
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
257 6296 cesar
                        <property name="debug" value="${debug}"/>
258
                        <property name="debuglevel" value="${debuglevel}"/>
259 10565 jmvivo
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
260 6296 cesar
                        <property name="encoding" value="ISO_8859_1"/>
261
                </ant>
262 10185 jmvivo
                <ant dir="${core}" target="import-build-number" inheritAll="false">
263
                        <property name="buildNumberFile" location="build.number"/>
264
                </ant>
265 6296 cesar
                <ant dir="${core}" target="batch-build"  inheritAll="false">
266 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
267
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
268 6296 cesar
                        <property name="debug" value="${debug}"/>
269
                        <property name="debuglevel" value="${debuglevel}"/>
270
                        <property name="encoding" value="ISO_8859_1"/>
271
                </ant>
272
                <ant dir="${cms}" target="batch-build"  inheritAll="false">
273 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
274
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
275 6296 cesar
                        <property name="debug" value="${debug}"/>
276
                        <property name="debuglevel" value="${debuglevel}"/>
277
                        <property name="encoding" value="ISO_8859_1"/>
278
                </ant>
279
                <ant dir="${driver}" target="batch-build"  inheritAll="false">
280 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
281
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
282 6296 cesar
                        <property name="debug" value="${debug}"/>
283
                        <property name="debuglevel" value="${debuglevel}"/>
284
                        <property name="encoding" value="ISO_8859_1"/>
285
                </ant>
286
                <ant dir="${remote}" target="batch-build"  inheritAll="false">
287 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
288
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
289 6296 cesar
                        <property name="debug" value="${debug}"/>
290
                        <property name="debuglevel" value="${debuglevel}"/>
291
                        <property name="encoding" value="ISO_8859_1"/>
292
                </ant>
293
                <ant dir="${gdbms}" target="batch-build" inheritAll="false">
294 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
295
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
296 6296 cesar
                        <property name="debug" value="${debug}"/>
297
                        <property name="debuglevel" value="${debuglevel}"/>
298
                        <property name="encoding" value="ISO_8859_1"/>
299
                </ant>
300
                <ant dir="${fmap}" target="batch-build"  inheritAll="false">
301 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
302
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
303 6296 cesar
                        <property name="debug" value="${debug}"/>
304
                        <property name="debuglevel" value="${debuglevel}"/>
305
                        <property name="encoding" value="ISO_8859_1"/>
306
                </ant>
307
                <ant dir="${gvSIG}" target="batch-build"  inheritAll="false">
308 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
309
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
310 6296 cesar
                        <property name="debug" value="${debug}"/>
311
                        <property name="debuglevel" value="${debuglevel}"/>
312
                        <property name="encoding" value="ISO_8859_1"/>
313
                </ant>
314 5849 cesar
        </target>
315
316 7209 cesar
        <property name="appcatalog" location="../appCatalogYNomenclatorClient"/>
317
        <property name="catalog" location="../extCatalogYNomenclator"/>
318
        <property name="dataloc" location="../extDataLocator"/>
319
        <property name="event" location="../extAddEventTheme"/>
320
        <property name="libdwg" location="../libDwg"/>
321
        <property name="extdwg" location="../extDwg"/>
322
        <property name="cad" location="../extCAD"/>
323
        <property name="geoprocessing" location="../extGeoProcessing"/>
324
        <property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
325
        <property name="georeferencing" location="../extGeoreferencing"/>
326
        <property name="jdbc" location="../extJDBC"/>
327
        <property name="rastertools" location="../extRasterTools"/>
328
        <property name="wcs" location="../extWCS"/>
329
        <property name="wfs" location="../extWFS2"/>
330
        <property name="wms" location="../extWMS"/>
331
        <property name="scripting" location="../extScripting"/>
332
        <property name="centerview" location="../extCenterViewToPoint"/>
333
        <property name="libui" location="../libUI"/>
334 11843 jmvivo
        <property name="expresionField" location="../extExpresionField"/>
335 11844 jmvivo
    <property name="annotations" location="../extAnnotations"/>
336 11869 jmvivo
    <property name="geobd" location="../extOracleSpatial"/>
337
    <property name="jcrs" location="../extJCRS_binaries"/>
338
    <property name="libArcIMS" location="../libArcIMS"/>
339
    <property name="Arcims" location="../extArcims"/>
340 7209 cesar
341 5849 cesar
        <target name="extensions" depends="base">
342 7209 cesar
                <condition property="event.Dir" value="${event}" else="voidTarget">
343
                        <available file="${event}" type="dir"/>
344
                </condition>
345 10185 jmvivo
                <ant dir="${event.Dir}" target="import-build-number" inheritAll="false">
346
                        <property name="buildNumberFile" location="build.number"/>
347
                </ant>
348 7209 cesar
                <ant dir="${event.Dir}" target="batch-build" inheritAll="false">
349 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
350
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
351 6296 cesar
                        <property name="debug" value="${debug}"/>
352
                        <property name="debuglevel" value="${debuglevel}"/>
353
                        <property name="encoding" value="ISO_8859_1"/>
354
                </ant>
355 7209 cesar
                <condition property="libdwg.Dir" value="${libdwg}" else="voidTarget">
356
                        <available file="${libdwg}" type="dir"/>
357
                </condition>
358
                <ant dir="${libdwg.Dir}" target="batch-build" inheritAll="false">
359 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
360
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
361 6296 cesar
                        <property name="debug" value="${debug}"/>
362
                        <property name="debuglevel" value="${debuglevel}"/>
363
                        <property name="encoding" value="ISO_8859_1"/>
364
                </ant>
365 7209 cesar
                <condition property="extdwg.Dir" value="${extdwg}" else="voidTarget">
366
                        <available file="${extdwg}" type="dir"/>
367
                </condition>
368
                <ant dir="${extdwg.Dir}" target="batch-build" inheritAll="false">
369 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
370
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
371 6296 cesar
                        <property name="debug" value="${debug}"/>
372
                        <property name="debuglevel" value="${debuglevel}"/>
373
                        <property name="encoding" value="ISO_8859_1"/>
374
                </ant>
375 7209 cesar
                <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget">
376
                        <available file="${jdbc}" type="dir"/>
377
                </condition>
378 10185 jmvivo
                <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false">
379
                        <property name="buildNumberFile" location="build.number"/>
380
                </ant>
381 7209 cesar
                <ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false">
382 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
383
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
384 6296 cesar
                        <property name="debug" value="${debug}"/>
385
                        <property name="debuglevel" value="${debuglevel}"/>
386
                        <property name="encoding" value="ISO_8859_1"/>
387 11869 jmvivo
                </ant>
388
        <condition property="geobd.Dir" value="${geobd}" else="voidTarget">
389
            <available file="${geobd}" type="dir"/>
390
        </condition>
391
        <ant dir="${geobd.Dir}" target="import-build-number" inheritAll="false">
392
            <property name="buildNumberFile" location="build.number"/>
393
        </ant>
394
        <ant dir="${geobd.Dir}" target="batch-build" inheritAll="false">
395
                <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
396
                <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
397
            <property name="debug" value="${debug}"/>
398
            <property name="debuglevel" value="${debuglevel}"/>
399
            <property name="encoding" value="ISO_8859_1"/>
400
        </ant>
401 7209 cesar
                <condition property="cad.Dir" value="${cad}" else="voidTarget">
402
                        <available file="${cad}" type="dir"/>
403
                </condition>
404 10185 jmvivo
                <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false">
405
                        <property name="buildNumberFile" location="build.number"/>
406
                </ant>
407 7209 cesar
                <ant dir="${cad.Dir}" target="batch-build" inheritAll="false">
408 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
409
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
410 6296 cesar
                        <property name="debug" value="${debug}"/>
411
                        <property name="debuglevel" value="${debuglevel}"/>
412
                        <property name="encoding" value="ISO_8859_1"/>
413 7776 cesar
                </ant>
414 7209 cesar
                <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget">
415
                        <available file="${appcatalog}" type="dir"/>
416
                </condition>
417 10185 jmvivo
                <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false">
418
                        <property name="buildNumberFile" location="build.number"/>
419
                </ant>
420 7209 cesar
                <ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false">
421 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
422
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
423 7209 cesar
                        <property name="debug" value="${debug}"/>
424
                        <property name="debuglevel" value="${debuglevel}"/>
425
                        <property name="encoding" value="ISO_8859_1"/>
426 6296 cesar
                </ant>
427 7209 cesar
                <condition property="catalog.Dir" value="${catalog}" else="voidTarget">
428
                        <available file="${catalog}" type="dir"/>
429
                </condition>
430 10185 jmvivo
                <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false">
431
                        <property name="buildNumberFile" location="build.number"/>
432
                </ant>
433 7209 cesar
                <ant dir="${catalog.Dir}" target="batch-build" inheritAll="false">
434 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
435
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
436 6296 cesar
                        <property name="debug" value="${debug}"/>
437
                        <property name="debuglevel" value="${debuglevel}"/>
438
                        <property name="encoding" value="ISO_8859_1"/>
439
                </ant>
440 7209 cesar
                <condition property="wcs.Dir" value="${wcs}" else="voidTarget">
441
                        <available file="${wcs}" type="dir"/>
442
                </condition>
443 10185 jmvivo
                <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false">
444
                        <property name="buildNumberFile" location="build.number"/>
445
                </ant>
446 7209 cesar
                <ant dir="${wcs.Dir}" target="batch-build" inheritAll="false">
447 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
448
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
449 6296 cesar
                        <property name="debug" value="${debug}"/>
450
                        <property name="debuglevel" value="${debuglevel}"/>
451
                        <property name="encoding" value="ISO_8859_1"/>
452
                </ant>
453 7209 cesar
                <condition property="wms.Dir" value="${wms}" else="voidTarget">
454
                        <available file="${wms}" type="dir"/>
455
                </condition>
456 10185 jmvivo
                <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false">
457
                        <property name="buildNumberFile" location="build.number"/>
458
                </ant>
459 7209 cesar
                <ant dir="${wms.Dir}" target="batch-build" inheritAll="false">
460 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
461
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
462 6296 cesar
                        <property name="debug" value="${debug}"/>
463
                        <property name="debuglevel" value="${debuglevel}"/>
464
                        <property name="encoding" value="ISO_8859_1"/>
465
                </ant>
466 7209 cesar
                <condition property="dataloc.Dir" value="${dataloc}" else="voidTarget">
467
                        <available file="${dataloc}" type="dir"/>
468
                </condition>
469 10185 jmvivo
                <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false">
470
                        <property name="buildNumberFile" location="build.number"/>
471
                </ant>
472 7209 cesar
                <ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false">
473 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
474
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
475 6296 cesar
                        <property name="debug" value="${debug}"/>
476
                        <property name="debuglevel" value="${debuglevel}"/>
477
                        <property name="encoding" value="ISO_8859_1"/>
478
                </ant>
479 7209 cesar
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget">
480
                        <available file="${geoprocessing}" type="dir"/>
481
                </condition>
482 10185 jmvivo
                <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false">
483
                        <property name="buildNumberFile" location="build.number"/>
484
                </ant>
485 7209 cesar
                <ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false">
486 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
487
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
488 6296 cesar
                        <property name="debug" value="${debug}"/>
489
                        <property name="debuglevel" value="${debuglevel}"/>
490
                        <property name="encoding" value="ISO_8859_1"/>
491
                </ant>
492 7209 cesar
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget">
493
                        <available file="${geoprocessingExtensions}" type="dir"/>
494
                </condition>
495 10185 jmvivo
                <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false">
496
                        <property name="buildNumberFile" location="build.number"/>
497
                </ant>
498 7209 cesar
                <ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false">
499 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
500
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
501 6296 cesar
                        <property name="debug" value="${debug}"/>
502
                        <property name="debuglevel" value="${debuglevel}"/>
503
                        <property name="encoding" value="ISO_8859_1"/>
504
                </ant>
505 7209 cesar
                <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget">
506
                        <available file="${georeferencing}" type="dir"/>
507
                </condition>
508 10185 jmvivo
                <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false">
509
                        <property name="buildNumberFile" location="build.number"/>
510
                </ant>
511 7209 cesar
                <ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false">
512 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
513
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
514 6296 cesar
                        <property name="debug" value="${debug}"/>
515
                        <property name="debuglevel" value="${debuglevel}"/>
516
                        <property name="encoding" value="ISO_8859_1"/>
517
                </ant>
518 8046 cesar
                <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget">
519 7209 cesar
                        <available file="${wfs}" type="dir"/>
520
                </condition>
521 10185 jmvivo
                <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false">
522
                        <property name="buildNumberFile" location="build.number"/>
523
                </ant>
524 7209 cesar
                <ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false">
525 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
526
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
527 6296 cesar
                        <property name="debug" value="${debug}"/>
528
                        <property name="debuglevel" value="${debuglevel}"/>
529
                        <property name="encoding" value="ISO_8859_1"/>
530
                </ant>
531 7209 cesar
                <condition property="wfs.Dir" value="${wfs}" else="voidTarget">
532
                        <available file="${wfs}" type="dir"/>
533
                </condition>
534 10185 jmvivo
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
535
                        <property name="buildNumberFile" location="build.number"/>
536
                </ant>
537 7209 cesar
                <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false">
538 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
539
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
540 6296 cesar
                        <property name="debug" value="${debug}"/>
541
                        <property name="debuglevel" value="${debuglevel}"/>
542
                        <property name="encoding" value="ISO_8859_1"/>
543
                </ant>
544 7209 cesar
                <condition property="centerview.Dir" value="${centerview}" else="voidTarget">
545
                        <available file="${centerview}" type="dir"/>
546
                </condition>
547 10185 jmvivo
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
548
                        <property name="buildNumberFile" location="build.number"/>
549
                </ant>
550 7209 cesar
                <ant dir="${centerview.Dir}" target="batch-build" inheritAll="false">
551 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
552
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
553 6360 cesar
                        <property name="debug" value="${debug}"/>
554
                        <property name="debuglevel" value="${debuglevel}"/>
555
                        <property name="encoding" value="ISO_8859_1"/>
556
                        <property name="installBaseDir" value="${global.installBaseDir}"/>
557
                </ant>
558 7209 cesar
                <condition property="scripting.Dir" value="${scripting}" else="voidTarget">
559
                        <available file="${scripting}" type="dir"/>
560
                </condition>
561 10185 jmvivo
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
562
                        <property name="buildNumberFile" location="build.number"/>
563
                </ant>
564 7209 cesar
                <ant dir="${scripting.Dir}" target="batch-build" inheritAll="false">
565 10565 jmvivo
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
566
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
567 6360 cesar
                        <property name="debug" value="${debug}"/>
568
                        <property name="debuglevel" value="${debuglevel}"/>
569
                        <property name="encoding" value="ISO_8859_1"/>
570
                </ant>
571 11843 jmvivo
572
                 <condition property="expresionField.Dir" value="${expresionField}" else="voidTarget">
573
                        <available file="${expresionField}" type="dir"/>
574
                </condition>
575
                <ant dir="${expresionField.Dir}" target="import-build-number" inheritAll="false">
576
                        <property name="buildNumberFile" location="build.number"/>
577
                </ant>
578
                <ant dir="${expresionField.Dir}" target="batch-build" inheritAll="false">
579
                          <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
580
                          <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
581
                        <property name="debug" value="${debug}"/>
582
                        <property name="debuglevel" value="${debuglevel}"/>
583
                        <property name="encoding" value="ISO_8859_1"/>
584 11844 jmvivo
                </ant>
585
586
        <condition property="annotations.Dir" value="${annotations}" else="voidTarget">
587
            <available file="${annotations}" type="dir"/>
588
        </condition>
589
       <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
590
            <property name="buildNumberFile" location="build.number"/>
591
        </ant>
592
        <ant dir="${annotations.Dir}" target="batch-build" inheritAll="false">
593
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
594
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
595
            <property name="debug" value="${debug}"/>
596
            <property name="debuglevel" value="${debuglevel}"/>
597
            <property name="encoding" value="ISO_8859_1"/>
598
        </ant>
599 12057 jmvivo
600 11869 jmvivo
        <condition property="jcrs.Dir" value="${jcrs}" else="voidTarget">
601
            <available file="${jcrs}" type="dir"/>
602
        </condition>
603
       <ant dir="${jcrs.Dir}" target="import-build-number" inheritAll="false">
604
            <property name="buildNumberFile" location="build.number"/>
605
        </ant>
606
        <ant dir="${jcrs.Dir}" target="batch-build" inheritAll="false">
607
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
608
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
609
            <property name="debug" value="${debug}"/>
610
            <property name="debuglevel" value="${debuglevel}"/>
611
            <property name="encoding" value="ISO_8859_1"/>
612
        </ant>
613
614
        <condition property="libArcIMS.Dir" value="${libArcIMS}" else="voidTarget">
615
            <available file="${libArcIMS}" type="dir"/>
616
        </condition>
617
        <ant dir="${libArcIMS.Dir}" target="batch-build" inheritAll="false">
618
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
619
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
620
            <property name="debug" value="${debug}"/>
621
            <property name="debuglevel" value="${debuglevel}"/>
622
            <property name="encoding" value="ISO_8859_1"/>
623
        </ant>
624
625
        <condition property="Arcims.Dir" value="${Arcims}" else="voidTarget">
626
            <available file="${Arcims}" type="dir"/>
627
        </condition>
628
       <ant dir="${Arcims.Dir}" target="import-build-number" inheritAll="false">
629
            <property name="buildNumberFile" location="build.number"/>
630
        </ant>
631
        <ant dir="${Arcims.Dir}" target="batch-build" inheritAll="false">
632
            <property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
633
            <property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
634
            <property name="debug" value="${debug}"/>
635
            <property name="debuglevel" value="${debuglevel}"/>
636
            <property name="encoding" value="ISO_8859_1"/>
637
        </ant>
638 5849 cesar
        </target>
639 6296 cesar
640 5849 cesar
        <target name="clean-all"
641
                                depends="clean-base,clean-extensions"
642
                                description="clean up" />
643
644 7209 cesar
        <target name="clean-base"
645
                description="cleans the base components of gvSIG: appgvSIG + libs">
646 5849 cesar
                <!-- Delete the ${build} and ${dist} directory trees -->
647
                <ant dir="${utiles}" target="clean"/>
648
                <ant dir="${i18n}" target="clean"/>
649
                <ant dir="${andami}" target="clean"/>
650
                <ant dir="${core}" target="clean"/>
651
                <ant dir="${cms}" target="clean"/>
652
                <ant dir="${driver}" target="clean"/>
653
                <ant dir="${remote}" target="clean"/>
654
                <ant dir="${gdbms}" target="clean"/>
655
                <ant dir="${fmap}" target="clean"/>
656
                <ant dir="${gvSIG}" target="clean"/>
657 6361 cesar
                <ant dir="${libui}" target="clean"/>
658 5849 cesar
        </target>
659
660 7209 cesar
        <target name="clean-extensions"
661
                description="Clean the extensions">
662
                <condition property="event.Dir" value="${event}" else="voidTarget">
663
                        <available file="${event}" type="dir"/>
664
                </condition>
665
                <ant dir="${event.Dir}" target="clean" inheritAll="false" />
666
                <condition property="libdwg.Dir" value="${libdwg}" else="voidTarget">
667
                        <available file="${libdwg}" type="dir"/>
668
                </condition>
669
                <ant dir="${libdwg.Dir}" target="clean" inheritAll="false" />
670
                <condition property="extdwg.Dir" value="${extdwg}" else="voidTarget">
671
                        <available file="${extdwg}" type="dir"/>
672
                </condition>
673
                <ant dir="${extdwg.Dir}" target="clean" inheritAll="false" />
674
                <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget">
675
                        <available file="${jdbc}" type="dir"/>
676
                </condition>
677 11869 jmvivo
                <ant dir="${jdbc.Dir}" target="clean" inheritAll="false" />
678
        <condition property="geobd.Dir" value="${geobd}" else="voidTarget">
679
            <available file="${geobd}" type="dir"/>
680
        </condition>
681
        <ant dir="${geobd.Dir}" target="clean" inheritAll="false" />
682 7209 cesar
                <condition property="cad.Dir" value="${cad}" else="voidTarget">
683
                        <available file="${cad}" type="dir"/>
684
                </condition>
685
                <ant dir="${cad.Dir}" target="clean" inheritAll="false" />
686
                <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget">
687
                        <available file="${appcatalog}" type="dir"/>
688
                </condition>
689
                <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false" />
690
                <condition property="catalog.Dir" value="${catalog}" else="voidTarget">
691
                        <available file="${catalog}" type="dir"/>
692
                </condition>
693
                <ant dir="${catalog.Dir}" target="clean" inheritAll="false" />
694
                <condition property="wcs.Dir" value="${wcs}" else="voidTarget">
695
                        <available file="${wcs}" type="dir"/>
696
                </condition>
697
                <ant dir="${wcs.Dir}" target="clean" inheritAll="false" />
698
                <condition property="wms.Dir" value="${wms}" else="voidTarget">
699
                        <available file="${wms}" type="dir"/>
700
                </condition>
701
                <ant dir="${wms.Dir}" target="clean" inheritAll="false" />
702
                <condition property="dataloc.Dir" value="${dataloc}" else="voidTarget">
703
                        <available file="${dataloc}" type="dir"/>
704
                </condition>
705 5849 cesar
                <ant dir="${dataloc}" target="clean" inheritAll="false" />
706 7209 cesar
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget">
707
                        <available file="${geoprocessing}" type="dir"/>
708
                </condition>
709
                <ant dir="${geoprocessing.Dir}" target="clean" inheritAll="false" />
710 11869 jmvivo
711
        <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget">
712
            <available file="${geoprocessingExtensions}" type="dir"/>
713
        </condition>
714
        <ant dir="${geoprocessingExtensions.Dir}" target="clean" inheritAll="false" />
715
716 7209 cesar
                <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget">
717
                        <available file="${georeferencing}" type="dir"/>
718
                </condition>
719
                <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false" />
720
                <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget">
721
                        <available file="${rastertools}" type="dir"/>
722
                </condition>
723
                <ant dir="${rastertools.Dir}" target="clean" inheritAll="false" />
724
                <condition property="wfsg.Dir" value="${wfs}" else="voidTarget">
725
                        <available file="${wfs}" type="dir"/>
726
                </condition>
727
                <ant dir="${wfsg.Dir}" target="clean" inheritAll="false" />
728
                <condition property="scripting.Dir" value="${scripting}" else="voidTarget">
729
                        <available file="${scripting}" type="dir"/>
730
                </condition>
731
                <ant dir="${scripting.Dir}" target="clean" inheritAll="false" />
732
                <condition property="centerview.Dir" value="${centerview}" else="voidTarget">
733
                        <available file="${centerview}" type="dir"/>
734
                </condition>
735
                <ant dir="${centerview.Dir}" target="clean" inheritAll="false" />
736 11844 jmvivo
        <condition property="${expresionField.Dir}" value="${expresionField}" else="voidTarget">
737
            <available file="${expresionField}" type="dir"/>
738
        </condition>
739
        <ant dir="${expresionField.Dir}" target="clean" inheritAll="false" />
740
        <condition property="${annotations.Dir}" value="${annotations}" else="voidTarget">
741
            <available file="${annotations}" type="dir"/>
742
        </condition>
743
        <ant dir="${annotations.Dir}" target="clean" inheritAll="false" />
744 5849 cesar
        </target>
745
746 5852 cesar
        <!-- Those targets don't compile, they just generate the jars and copy files to
747
        andami. The compilation is supposed to be done by Eclipse  -->
748
        <target name="install-all"
749 6048 cesar
                                        depends="install-base,install-extensions"
750 7209 cesar
                                        description="Generate jars and copy files to Andami for the whole application (gvSIG+libs+extensions). Compilation is supposed to be automatically done by Eclipse" />
751 5852 cesar
752 7209 cesar
        <target name="install-base"
753
                                description="Generate jars and copy files to Andami for the application (gvSIG+libs). Compilation is supposed to be automatically done by Eclipse" >
754 12057 jmvivo
                <property file="build.number"/>
755
                  <ant dir="${i18n}" inheritAll="false"/>
756
                <ant dir="${utiles}" inheritAll="false"/>
757
                <ant dir="${andami}" inheritAll="false"/>
758
                <ant dir="${libui}" inheritAll="false"/>
759
                <ant dir="${core}" target="import-build-number" inheritAll="false">
760
                        <property name="buildNumberFile" location="build.number"/>
761
                </ant>
762
                <ant dir="${core}" inheritAll="false"/>
763
                <ant dir="${cms}" inheritAll="false"/>
764
                <ant dir="${driver}" inheritAll="false"/>
765
                <ant dir="${remote}" inheritAll="false"/>
766
                <ant dir="${gdbms}" inheritAll="false"/>
767
                <ant dir="${fmap}" inheritAll="false"/>
768
                <ant dir="${gvSIG}" inheritAll="false"/>
769 7209 cesar
        </target>
770 5852 cesar
771 11869 jmvivo
        <target name="install-extensions" depends="install-base"
772 7209 cesar
                        description="Generate jars and copy files to Andami for the extensions. Compilation is supposed to be automatically done by Eclipse" >
773 12057 jmvivo
                <condition property="event.Dir" value="${event}" else="voidTarget">
774
                        <available file="${event}" type="dir"/>
775
                </condition>
776
                <ant dir="${event.Dir}" target="import-build-number" inheritAll="false">
777
                        <property name="buildNumberFile" location="build.number"/>
778
                </ant>
779
                <ant dir="${event.Dir}" inheritAll="false"/>
780
                <condition property="libdwg.Dir" value="${libdwg}" else="voidTarget">
781
                        <available file="${libdwg}" type="dir"/>
782
                </condition>
783
                <ant dir="${libdwg.Dir}" inheritAll="false"/>
784
                <condition property="extdwg.Dir" value="${extdwg}" else="voidTarget">
785
                        <available file="${extdwg}" type="dir"/>
786
                </condition>
787
                <ant dir="${extdwg.Dir}" inheritAll="false"/>
788
                <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget">
789
                        <available file="${jdbc}" type="dir"/>
790
                </condition>
791
                <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false">
792
                        <property name="buildNumberFile" location="build.number"/>
793
                </ant>
794
                <ant dir="${jdbc.Dir}" inheritAll="false"/>
795
796
            <condition property="geobd.Dir" value="${geobd}" else="voidTarget">
797
                <available file="${geobd}" type="dir"/>
798
            </condition>
799
            <ant dir="${geobd.Dir}" target="import-build-number" inheritAll="false">
800
                <property name="buildNumberFile" location="build.number"/>
801
            </ant>
802
            <ant dir="${geobd.Dir}" inheritAll="false"/>
803
                <condition property="cad.Dir" value="${cad}" else="voidTarget">
804
                        <available file="${cad}" type="dir"/>
805
                </condition>
806
                <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false">
807
                        <property name="buildNumberFile" location="build.number"/>
808
                </ant>
809
                <ant dir="${cad.Dir}" inheritAll="false"/>
810
                <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget">
811
                        <available file="${appcatalog}" type="dir"/>
812
                </condition>
813
                <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false">
814
                        <property name="buildNumberFile" location="build.number"/>
815
                </ant>
816
                <ant dir="${appcatalog.Dir}" inheritAll="false"/>
817
                <condition property="catalog.Dir" value="${catalog}" else="voidTarget">
818
                        <available file="${catalog}" type="dir"/>
819
                </condition>
820
                <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false">
821
                        <property name="buildNumberFile" location="build.number"/>
822
                </ant>
823
                <ant dir="${catalog.Dir}" inheritAll="false"/>
824
                <condition property="wcs.Dir" value="${wcs}" else="voidTarget">
825
                        <available file="${wcs}" type="dir"/>
826
                </condition>
827
                <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false">
828
                        <property name="buildNumberFile" location="build.number"/>
829
                </ant>
830
                <ant dir="${wcs.Dir}" inheritAll="false"/>
831
                <condition property="wms.Dir" value="${wms}" else="voidTarget">
832
                        <available file="${wms}" type="dir"/>
833
                </condition>
834
                <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false">
835
                        <property name="buildNumberFile" location="build.number"/>
836
                </ant>
837
                <ant dir="${wms.Dir}" inheritAll="false"/>
838
                <condition property="dataloc.Dir" value="${dataloc}" else="voidTarget">
839
                        <available file="${dataloc}" type="dir"/>
840
                </condition>
841
                <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false">
842
                        <property name="buildNumberFile" location="build.number"/>
843
                </ant>
844
                <ant dir="${dataloc.Dir}" inheritAll="false"/>
845
                <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget">
846
                        <available file="${geoprocessing}" type="dir"/>
847
                </condition>
848
                <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false">
849
                        <property name="buildNumberFile" location="build.number"/>
850
                </ant>
851
                <ant dir="${geoprocessing.Dir}" inheritAll="false"/>
852
                <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget">
853
                        <available file="${geoprocessingExtensions}" type="dir"/>
854
                </condition>
855
                <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false">
856
                        <property name="buildNumberFile" location="build.number"/>
857
                </ant>
858
                <ant dir="${geoprocessingExtensions.Dir}" inheritAll="false"/>
859
                <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget">
860
                        <available file="${georeferencing}" type="dir"/>
861
                </condition>
862
                <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false">
863
                        <property name="buildNumberFile" location="build.number"/>
864
                </ant>
865
                <ant dir="${georeferencing.Dir}" inheritAll="false"/>
866
                <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget">
867
                        <available file="${wfs}" type="dir"/>
868
                </condition>
869
                <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false">
870
                        <property name="buildNumberFile" location="build.number"/>
871
                </ant>
872
                <ant dir="${rastertools.Dir}" inheritAll="false"/>
873
                <condition property="wfs.Dir" value="${wfs}" else="voidTarget">
874
                        <available file="${wfs}" type="dir"/>
875
                </condition>
876
                <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false">
877
                        <property name="buildNumberFile" location="build.number"/>
878
                </ant>
879
                <ant dir="${wfs.Dir}" inheritAll="false"/>
880
                <condition property="centerview.Dir" value="${centerview}" else="voidTarget">
881
                        <available file="${centerview}" type="dir"/>
882
                </condition>
883
                <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false">
884
                        <property name="buildNumberFile" location="build.number"/>
885
                </ant>
886
                <ant dir="${centerview.Dir}" inheritAll="false"/>
887
                <condition property="scripting.Dir" value="${scripting}" else="voidTarget">
888
                        <available file="${scripting}" type="dir"/>
889
                </condition>
890
                <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false">
891
                        <property name="buildNumberFile" location="build.number"/>
892
                </ant>
893
                <ant dir="${scripting.Dir}" inheritAll="false"/>
894
895
                <condition property="expresionField.Dir" value="${expresionField}" else="voidTarget">
896
                        <available file="${expresionField}" type="dir"/>
897
                </condition>
898
                <ant dir="${expresionField.Dir}" target="import-build-number" inheritAll="false">
899
                        <property name="buildNumberFile" location="build.number"/>
900
                </ant>
901
                <ant dir="${expresionField.Dir}" inheritAll="false"/>
902
903
            <condition property="annotations.Dir" value="${annotations}" else="voidTarget">
904
                <available file="${annotations}" type="dir"/>
905
            </condition>
906
           <ant dir="${annotations.Dir}" target="import-build-number" inheritAll="false">
907
                <property name="buildNumberFile" location="build.number"/>
908
            </ant>
909
            <ant dir="${annotations.Dir}" inheritAll="false"/>
910
911
            <condition property="jcrs.Dir" value="${jcrs}" else="voidTarget">
912
                <available file="${jcrs}" type="dir"/>
913
            </condition>
914
           <ant dir="${jcrs.Dir}" target="import-build-number" inheritAll="false">
915
                <property name="buildNumberFile" location="build.number"/>
916
            </ant>
917
            <ant dir="${jcrs.Dir}" inheritAll="false"/>
918
919
            <condition property="libArcIMS.Dir" value="${libArcIMS}" else="voidTarget">
920
                <available file="${libArcIMS}" type="dir"/>
921
            </condition>
922
            <ant dir="${libArcIMS.Dir}" inheritAll="false"/>
923
924
            <condition property="Arcims.Dir" value="${Arcims}" else="voidTarget">
925
                <available file="${Arcims}" type="dir"/>
926
            </condition>
927
           <ant dir="${Arcims.Dir}" target="import-build-number" inheritAll="false">
928
                <property name="buildNumberFile" location="build.number"/>
929
            </ant>
930
            <ant dir="${Arcims.Dir}" inheritAll="false"/>
931
932 7209 cesar
        </target>
933 5852 cesar
934
935
936 6361 cesar
        <!-- The download targets are still no working well (or maybe not working at all...) -->
937 5849 cesar
        <target name="download"
938 7209 cesar
                        description="Not working yet. Downloads all the projects from the CVS HEAD"
939 5849 cesar
                        depends="download-base, download-extensions">
940
        </target>
941
942 7209 cesar
        <target name="download-base" description="Not working yet. It will download the base projects required to build gvSIG">
943 5849 cesar
                <property name="downloadDir" value="tmp-download"/>
944
                <mkdir dir="${downloadDir}" />
945
946
                <!-- andami -->
947
                <cvs
948
                        dest="${downloadDir}"
949
                        package="gvSIG-project/frameworks/_fwAndami"
950
                        cvsRoot=":extssh:www.gvsig.org:/var/lib/cvs-gvSIG" />
951
952
                <move todir="${andami}">
953
                        <fileset dir="${downloadDir}/gvSIG-project/frameworks/_fwAndami"/>
954
                </move>
955
956
                <!-- we have to do the same for the rest of the projects -->
957
        </target>
958
959 7209 cesar
        <target name="download-extensions" description="Not working yet. It will download the extensions">
960 5849 cesar
        </target>
961
962 312 fernando
</project>