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