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