svn-gvsig-desktop / branches / simbologia / applications / appgvSIG / build.xml @ 44220
History | View | Annotate | Download (28.7 KB)
1 | 7210 | 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 | 9833 | fjp | <property name="version" value="1.0 ${eclipse.startTime}"/> |
8 | 4907 | cesar | <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 | 7711 | cesar | <import file="compile-classpath.xml"/> |
21 | 7788 | cesar | <import file="../_fwAndami/compile-classpath.xml"/> |
22 | 4907 | cesar | <property name="build-doc" value="build-doc"/> |
23 | 5631 | cesar | |
24 | 4907 | cesar | <target name="init"> |
25 | <!-- Create the time stamp -->
|
||
26 | <tstamp/> |
||
27 | 7210 | cesar | <echo>
|
28 | Compiling ${ant.project.name}...</echo>
|
||
29 | 9200 | jmvivo | <mkdir dir="${dist}"/> |
30 | 4907 | cesar | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
31 | <!-- <buildnumber/> -->
|
||
32 | </target>
|
||
33 | 4143 | caballero | |
34 | 4907 | cesar | <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 | 4143 | caballero | |
44 | 4907 | cesar | <target name="dist" |
45 | 9200 | jmvivo | depends="init,create-jar,copy-libs,copy-data-files,move-to-andami" |
46 | 7139 | cesar | description="Generate the distribution of the gvSIG plugin. To build just the appgvSIG project from Eclipse " > |
47 | 9776 | cesar | <!-- Create the distribution directory -->
|
48 | 4907 | cesar | </target>
|
49 | |||
50 | <target name="batch-build" |
||
51 | 7139 | cesar | description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" |
52 | 9200 | jmvivo | depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami"> |
53 | 4907 | cesar | </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 | 6296 | cesar | debug="${debug}" |
68 | debuglevel="${debuglevel}" |
||
69 | 7711 | cesar | excludes="com/iver/cit/gvsig/test/**"> |
70 | <classpath refid="appgvSIG.compile-classpath"/> |
||
71 | 7788 | cesar | <!-- <classpath refid="_fwAndami.compile-classpath"/> -->
|
72 | 7711 | cesar | </javac>
|
73 | 4907 | cesar | </target>
|
74 | 312 | fernando | |
75 | 4907 | cesar | <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 | 9200 | jmvivo | <target name="copy-libs"> |
81 | 4907 | cesar | <!-- 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 | 9202 | jmvivo | <ant dir="${fmap}" target="batch-build" inheritAll="false"> |
86 | 9200 | jmvivo | <property name="debug" value="${debug}"/> |
87 | <property name="debuglevel" value="${debuglevel}"/> |
||
88 | <property name="encoding" value="ISO_8859_1"/> |
||
89 | </ant>
|
||
90 | 4907 | cesar | <copy todir="${dist}/lib"> |
91 | 9200 | jmvivo | <fileset dir="${fmapdir}/dist/lib/" includes="*.jar,*.zip"/> |
92 | 4907 | cesar | </copy>
|
93 | 9200 | jmvivo | |
94 | 4907 | cesar | </target>
|
95 | |||
96 | <target name="copy-data-files"> |
||
97 | 5489 | cesar | <copy todir="${dist}"> |
98 | <fileset dir="config" includes="*" /> |
||
99 | </copy>
|
||
100 | 4907 | cesar | <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 | 6846 | ppiqueras | <!-- <delete dir="${dist}"/> -->
|
120 | 4907 | cesar | </target>
|
121 | 5849 | cesar | |
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 | 6296 | cesar | <property name="global.installBaseDir" location="${andami}"/> |
135 | 9776 | cesar | <property name="exceptions" location="../libExceptions"/> |
136 | 5849 | cesar | |
137 | <target name="build-all" |
||
138 | 7141 | cesar | depends="debug-no,base,extensions" |
139 | 7139 | cesar | description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" /> |
140 | 5849 | cesar | |
141 | 6296 | cesar | <target name="eclipse-build-all" |
142 | 7141 | cesar | depends="debug-yes,base,extensions" |
143 | 6296 | cesar | 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 | 6360 | cesar | <target name="eclipse-base" depends="debug-yes,base" /> |
155 | <target name="eclipse-extensions" depends="debug-yes,base,extensions" /> |
||
156 | |||
157 | 9776 | cesar | <property name="encoding" value="ISO_8859_1" /> |
158 | <property name="sourceVersion" value="1.4" /> |
||
159 | <property name="targetVersion" value="1.4" /> |
||
160 | |||
161 | 5849 | cesar | <target name="base" |
162 | description="Builds the application, excluding extensions"> |
||
163 | 9776 | cesar | <!-- 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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
169 | <property name="debuglevel" value="${debuglevel}"/> |
||
170 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
171 | <property name="projectName" value="${i18n}" /> |
||
172 | 6296 | cesar | </ant>
|
173 | 9776 | cesar | <!-- 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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
179 | <property name="debuglevel" value="${debuglevel}"/> |
||
180 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
181 | <property name="projectName" value="${exceptions}" /> |
||
182 | 6296 | cesar | </ant>
|
183 | 9776 | cesar | <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 | 7210 | cesar | <ant dir="${andami}" target="batch-build" inheritAll="false"> |
193 | 6296 | cesar | <property name="debug" value="${debug}"/> |
194 | <property name="debuglevel" value="${debuglevel}"/> |
||
195 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
196 | 6296 | cesar | </ant>
|
197 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
202 | <property name="debuglevel" value="${debuglevel}"/> |
||
203 | 9776 | cesar | <property name="installBaseDir" value="${global.installBaseDir}"/> |
204 | <property name="encoding" value="${encoding}"/> |
||
205 | <property name="projectName" value="${libui}" /> |
||
206 | 6296 | cesar | </ant>
|
207 | <ant dir="${core}" target="batch-build" inheritAll="false"> |
||
208 | <property name="debug" value="${debug}"/> |
||
209 | <property name="debuglevel" value="${debuglevel}"/> |
||
210 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
211 | 6296 | cesar | </ant>
|
212 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
217 | <property name="debuglevel" value="${debuglevel}"/> |
||
218 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
219 | <property name="projectName" value="${cms}" /> |
||
220 | 6296 | cesar | </ant>
|
221 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
226 | <property name="debuglevel" value="${debuglevel}"/> |
||
227 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
228 | <property name="projectName" value="${driver}" /> |
||
229 | 6296 | cesar | </ant>
|
230 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
235 | <property name="debuglevel" value="${debuglevel}"/> |
||
236 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
237 | <property name="projectName" value="${remote}" /> |
||
238 | 6296 | cesar | </ant>
|
239 | <ant dir="${gdbms}" target="batch-build" inheritAll="false"> |
||
240 | <property name="debug" value="${debug}"/> |
||
241 | <property name="debuglevel" value="${debuglevel}"/> |
||
242 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
243 | 6296 | cesar | </ant>
|
244 | <ant dir="${fmap}" target="batch-build" inheritAll="false"> |
||
245 | <property name="debug" value="${debug}"/> |
||
246 | <property name="debuglevel" value="${debuglevel}"/> |
||
247 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
248 | 6296 | cesar | </ant>
|
249 | <ant dir="${gvSIG}" target="batch-build" inheritAll="false"> |
||
250 | <property name="debug" value="${debug}"/> |
||
251 | <property name="debuglevel" value="${debuglevel}"/> |
||
252 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
253 | 6296 | cesar | </ant>
|
254 | 5849 | cesar | </target>
|
255 | |||
256 | 7210 | cesar | <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 | 5849 | cesar | <target name="extensions" depends="base"> |
277 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
282 | <property name="debuglevel" value="${debuglevel}"/> |
||
283 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
284 | <property name="projectName" value="${event}" /> |
||
285 | 6296 | cesar | </ant>
|
286 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
291 | <property name="debuglevel" value="${debuglevel}"/> |
||
292 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
293 | <property name="sourceVersion" value="${sourceVersion}" /> |
||
294 | <property name="targetVersion" value="${targetVersion}" /> |
||
295 | <property name="projectName" value="${libdwg}" /> |
||
296 | 6296 | cesar | </ant>
|
297 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
302 | <property name="debuglevel" value="${debuglevel}"/> |
||
303 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
304 | <property name="projectName" value="${extdwg}" /> |
||
305 | 6296 | cesar | </ant>
|
306 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
311 | <property name="debuglevel" value="${debuglevel}"/> |
||
312 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
313 | <property name="projectName" value="${jdbc}" /> |
||
314 | 6296 | cesar | </ant>
|
315 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
320 | <property name="debuglevel" value="${debuglevel}"/> |
||
321 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
322 | <property name="projectName" value="${cad}" /> |
||
323 | 7780 | cesar | </ant>
|
324 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
329 | <property name="debuglevel" value="${debuglevel}"/> |
||
330 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
331 | <property name="projectName" value="${appcatalog}" /> |
||
332 | 6296 | cesar | </ant>
|
333 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
338 | <property name="debuglevel" value="${debuglevel}"/> |
||
339 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
340 | <property name="projectName" value="${catalog}" /> |
||
341 | 6296 | cesar | </ant>
|
342 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
347 | <property name="debuglevel" value="${debuglevel}"/> |
||
348 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
349 | <property name="projectName" value="${wcs}" /> |
||
350 | 6296 | cesar | </ant>
|
351 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
356 | <property name="debuglevel" value="${debuglevel}"/> |
||
357 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
358 | <property name="projectName" value="${wms}" /> |
||
359 | 6296 | cesar | </ant>
|
360 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
365 | <property name="debuglevel" value="${debuglevel}"/> |
||
366 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
367 | <property name="projectName" value="${dataloc}" /> |
||
368 | 6296 | cesar | </ant>
|
369 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
374 | <property name="debuglevel" value="${debuglevel}"/> |
||
375 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
376 | <property name="projectName" value="${geoprocessing}" /> |
||
377 | 6296 | cesar | </ant>
|
378 | 7210 | cesar | <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 | 7174 | cesar | <property name="debug" value="${debug}"/> |
383 | <property name="debuglevel" value="${debuglevel}"/> |
||
384 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
385 | <property name="projectName" value="${geoprocessingExtensions}" /> |
||
386 | 7174 | cesar | </ant>
|
387 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
392 | <property name="debuglevel" value="${debuglevel}"/> |
||
393 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
394 | <property name="projectName" value="${georeferencing}" /> |
||
395 | 6296 | cesar | </ant>
|
396 | 8048 | cesar | <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget"> |
397 | 7210 | cesar | <available file="${wfs}" type="dir"/> |
398 | </condition>
|
||
399 | <ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false"> |
||
400 | 6296 | cesar | <property name="debug" value="${debug}"/> |
401 | <property name="debuglevel" value="${debuglevel}"/> |
||
402 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
403 | <property name="projectName" value="${rastertools}" /> |
||
404 | 6296 | cesar | </ant>
|
405 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
410 | <property name="debuglevel" value="${debuglevel}"/> |
||
411 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
412 | <property name="projectName" value="${wfs}" /> |
||
413 | 6296 | cesar | </ant>
|
414 | 7210 | cesar | <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 | 6360 | cesar | <property name="debug" value="${debug}"/> |
419 | <property name="debuglevel" value="${debuglevel}"/> |
||
420 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
421 | 6360 | cesar | <property name="installBaseDir" value="${global.installBaseDir}"/> |
422 | 9776 | cesar | <property name="projectName" value="${centerview}" /> |
423 | 6360 | cesar | </ant>
|
424 | 7210 | cesar | <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 | 6360 | cesar | <property name="debug" value="${debug}"/> |
429 | <property name="debuglevel" value="${debuglevel}"/> |
||
430 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
431 | <property name="projectName" value="${scripting}" /> |
||
432 | 6360 | cesar | </ant>
|
433 | 5849 | cesar | </target>
|
434 | 6296 | cesar | |
435 | 5849 | cesar | <target name="clean-all" |
436 | depends="clean-base,clean-extensions" |
||
437 | description="clean up" /> |
||
438 | |||
439 | 7210 | cesar | <target name="clean-base" |
440 | description="cleans the base components of gvSIG: appgvSIG + libs"> |
||
441 | 5849 | cesar | <!-- Delete the ${build} and ${dist} directory trees -->
|
442 | 9776 | cesar | <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 | 5849 | cesar | <ant dir="${andami}" target="clean"/> |
463 | <ant dir="${core}" target="clean"/> |
||
464 | 9776 | cesar | |
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 | 5849 | cesar | <ant dir="${fmap}" target="clean"/> |
488 | <ant dir="${gvSIG}" target="clean"/> |
||
489 | 9776 | cesar | |
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 | 5849 | cesar | </target>
|
497 | |||
498 | 7210 | cesar | <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 | 9776 | cesar | <ant dir="${event.Dir}" target="clean" inheritAll="false"> |
504 | <property name="projectName" value="${event}" /> |
||
505 | </ant>
|
||
506 | |||
507 | 7210 | cesar | <condition property="libdwg.Dir" value="${libdwg}" else="voidTarget"> |
508 | <available file="${libdwg}" type="dir"/> |
||
509 | </condition>
|
||
510 | 9776 | cesar | <ant dir="${libdwg.Dir}" target="clean" inheritAll="false"> |
511 | <property name="projectName" value="${libdwg}" /> |
||
512 | </ant>
|
||
513 | |||
514 | 7210 | cesar | <condition property="extdwg.Dir" value="${extdwg}" else="voidTarget"> |
515 | <available file="${extdwg}" type="dir"/> |
||
516 | </condition>
|
||
517 | 9776 | cesar | <ant dir="${extdwg.Dir}" target="clean" inheritAll="false"> |
518 | <property name="projectName" value="${extdwg}" /> |
||
519 | </ant>
|
||
520 | |||
521 | 7210 | cesar | <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget"> |
522 | <available file="${jdbc}" type="dir"/> |
||
523 | </condition>
|
||
524 | 9776 | cesar | <ant dir="${jdbc.Dir}" target="clean" inheritAll="false"> |
525 | <property name="projectName" value="${jdbc}" /> |
||
526 | </ant>
|
||
527 | |||
528 | 7210 | cesar | <condition property="cad.Dir" value="${cad}" else="voidTarget"> |
529 | <available file="${cad}" type="dir"/> |
||
530 | </condition>
|
||
531 | 9776 | cesar | <ant dir="${cad.Dir}" target="clean" inheritAll="false"> |
532 | <property name="projectName" value="${cad}" /> |
||
533 | </ant>
|
||
534 | |||
535 | 7210 | cesar | <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
536 | <available file="${appcatalog}" type="dir"/> |
||
537 | </condition>
|
||
538 | 9776 | cesar | <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false"> |
539 | <property name="projectName" value="${appcatalog}" /> |
||
540 | </ant>
|
||
541 | |||
542 | 7210 | cesar | <condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
543 | <available file="${catalog}" type="dir"/> |
||
544 | </condition>
|
||
545 | 9776 | cesar | <ant dir="${catalog.Dir}" target="clean" inheritAll="false"> |
546 | <property name="projectName" value="${catalog}" /> |
||
547 | </ant>
|
||
548 | |||
549 | 7210 | cesar | <condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
550 | <available file="${wcs}" type="dir"/> |
||
551 | </condition>
|
||
552 | 9776 | cesar | <ant dir="${wcs.Dir}" target="clean" inheritAll="false"> |
553 | <property name="projectName" value="${wcs}" /> |
||
554 | </ant>
|
||
555 | |||
556 | 7210 | cesar | <condition property="wms.Dir" value="${wms}" else="voidTarget"> |
557 | <available file="${wms}" type="dir"/> |
||
558 | </condition>
|
||
559 | 9776 | cesar | <ant dir="${wms.Dir}" target="clean" inheritAll="false"> |
560 | <property name="projectName" value="${wms}" /> |
||
561 | </ant>
|
||
562 | |||
563 | 7210 | cesar | <condition property="dataloc.Dir" value="${dataloc}" else="voidTarget"> |
564 | <available file="${dataloc}" type="dir"/> |
||
565 | </condition>
|
||
566 | 9776 | cesar | <ant dir="${dataloc}" target="clean" inheritAll="false"> |
567 | <property name="projectName" value="${dataloc}" /> |
||
568 | </ant>
|
||
569 | |||
570 | 7210 | cesar | <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget"> |
571 | <available file="${geoprocessing}" type="dir"/> |
||
572 | </condition>
|
||
573 | 9776 | cesar | <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 | 7210 | cesar | <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget"> |
585 | <available file="${georeferencing}" type="dir"/> |
||
586 | </condition>
|
||
587 | 9776 | cesar | <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false"> |
588 | <property name="projectName" value="${georeferencing}" /> |
||
589 | </ant>
|
||
590 | |||
591 | 7210 | cesar | <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget"> |
592 | <available file="${rastertools}" type="dir"/> |
||
593 | </condition>
|
||
594 | 9776 | cesar | <ant dir="${rastertools.Dir}" target="clean" inheritAll="false"> |
595 | <property name="projectName" value="${rastertools}" /> |
||
596 | </ant>
|
||
597 | |||
598 | 7210 | cesar | <condition property="wfsg.Dir" value="${wfs}" else="voidTarget"> |
599 | <available file="${wfs}" type="dir"/> |
||
600 | </condition>
|
||
601 | 9776 | cesar | <ant dir="${wfsg.Dir}" target="clean" inheritAll="false"> |
602 | <property name="projectName" value="${wfs}" /> |
||
603 | </ant>
|
||
604 | |||
605 | 7210 | cesar | <condition property="scripting.Dir" value="${scripting}" else="voidTarget"> |
606 | <available file="${scripting}" type="dir"/> |
||
607 | </condition>
|
||
608 | 9776 | cesar | <ant dir="${scripting.Dir}" target="clean" inheritAll="false"> |
609 | <property name="projectName" value="${scripting}" /> |
||
610 | </ant>
|
||
611 | |||
612 | 7210 | cesar | <condition property="centerview.Dir" value="${centerview}" else="voidTarget"> |
613 | <available file="${centerview}" type="dir"/> |
||
614 | </condition>
|
||
615 | 9776 | cesar | <ant dir="${centerview.Dir}" target="clean" inheritAll="false"> |
616 | <property name="projectName" value="${centerview}" /> |
||
617 | </ant>
|
||
618 | 5849 | cesar | </target>
|
619 | |||
620 | 5852 | cesar | <!-- 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 | 6048 | cesar | depends="install-base,install-extensions" |
624 | 7139 | 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" /> |
625 | 5852 | cesar | |
626 | 7139 | cesar | <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 | 5852 | cesar | |
641 | 7139 | cesar | <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 | 5852 | cesar | |
661 | |||
662 | |||
663 | 6361 | cesar | <!-- The download targets are still no working well (or maybe not working at all...) -->
|
664 | 5849 | cesar | <target name="download" |
665 | 7139 | cesar | description="Not working yet. Downloads all the projects from the CVS HEAD" |
666 | 5849 | cesar | depends="download-base, download-extensions"> |
667 | </target>
|
||
668 | |||
669 | 7139 | cesar | <target name="download-base" description="Not working yet. It will download the base projects required to build gvSIG"> |
670 | 5849 | cesar | <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 | 7139 | cesar | <target name="download-extensions" description="Not working yet. It will download the extensions"> |
687 | 5849 | cesar | </target>
|
688 | 9776 | cesar | |
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 | 312 | fernando | </project>
|