root / trunk / applications / appgvSIG / build.xml @ 11445
History | View | Annotate | Download (31.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 | 10187 | jmvivo | <property name="version" value="1.1 ${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 | 10686 | cesar | <import file="../libFMap/compile-classpath.xml"/> |
23 | 4907 | cesar | <property name="build-doc" value="build-doc"/> |
24 | 5631 | cesar | |
25 | 4907 | cesar | <target name="init"> |
26 | <!-- Create the time stamp -->
|
||
27 | <tstamp/> |
||
28 | 7210 | cesar | <echo>
|
29 | Compiling ${ant.project.name}...</echo>
|
||
30 | 10187 | jmvivo | |
31 | <property file="build.number"/> |
||
32 | 4907 | cesar | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
33 | <!-- <buildnumber/> -->
|
||
34 | </target>
|
||
35 | 4143 | caballero | |
36 | 4907 | cesar | <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 | 4143 | caballero | |
46 | 4907 | cesar | <target name="dist" |
47 | 9200 | jmvivo | depends="init,create-jar,copy-libs,copy-data-files,move-to-andami" |
48 | 7139 | cesar | description="Generate the distribution of the gvSIG plugin. To build just the appgvSIG project from Eclipse " > |
49 | 9776 | cesar | <!-- Create the distribution directory -->
|
50 | 4907 | cesar | </target>
|
51 | |||
52 | 10187 | jmvivo | <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 | 4907 | cesar | <target name="batch-build" |
57 | 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" |
58 | 9200 | jmvivo | depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami"> |
59 | 4907 | cesar | </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 | 10187 | jmvivo | <!-- <buildnumber />-->
|
68 | 4907 | cesar | <!-- Compile the Java code from ${src} to ${build} -->
|
69 | <javac srcdir="${src}" |
||
70 | destdir="${build}" |
||
71 | source="1.4" |
||
72 | target="1.4" |
||
73 | 6296 | cesar | debug="${debug}" |
74 | debuglevel="${debuglevel}" |
||
75 | 7711 | cesar | excludes="com/iver/cit/gvsig/test/**"> |
76 | <classpath refid="appgvSIG.compile-classpath"/> |
||
77 | 10686 | cesar | <classpath refid="libFMap.compile-classpath"/> |
78 | 7788 | cesar | <!-- <classpath refid="_fwAndami.compile-classpath"/> -->
|
79 | 7711 | cesar | </javac>
|
80 | 4907 | cesar | </target>
|
81 | 312 | fernando | |
82 | 4907 | cesar | <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 | 9200 | jmvivo | <target name="copy-libs"> |
88 | 4907 | cesar | <!-- 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 | 9202 | jmvivo | <ant dir="${fmap}" target="batch-build" inheritAll="false"> |
93 | 9200 | jmvivo | <property name="debug" value="${debug}"/> |
94 | <property name="debuglevel" value="${debuglevel}"/> |
||
95 | <property name="encoding" value="ISO_8859_1"/> |
||
96 | </ant>
|
||
97 | 4907 | cesar | <copy todir="${dist}/lib"> |
98 | 9200 | jmvivo | <fileset dir="${fmapdir}/dist/lib/" includes="*.jar,*.zip"/> |
99 | 4907 | cesar | </copy>
|
100 | 9200 | jmvivo | |
101 | 4907 | cesar | </target>
|
102 | |||
103 | <target name="copy-data-files"> |
||
104 | 5489 | cesar | <copy todir="${dist}"> |
105 | <fileset dir="config" includes="*" /> |
||
106 | </copy>
|
||
107 | 4907 | cesar | <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 | 6846 | ppiqueras | <!-- <delete dir="${dist}"/> -->
|
127 | 4907 | cesar | </target>
|
128 | 5849 | cesar | |
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 | 6296 | cesar | <property name="global.installBaseDir" location="${andami}"/> |
142 | 9776 | cesar | <property name="exceptions" location="../libExceptions"/> |
143 | 5849 | cesar | |
144 | 10187 | jmvivo | <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 | 5849 | cesar | <target name="build-all" |
154 | 7141 | cesar | depends="debug-no,base,extensions" |
155 | 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" /> |
156 | 5849 | cesar | |
157 | 6296 | cesar | <target name="eclipse-build-all" |
158 | 7141 | cesar | depends="debug-yes,base,extensions" |
159 | 6296 | cesar | 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 | 6360 | cesar | <target name="eclipse-base" depends="debug-yes,base" /> |
171 | <target name="eclipse-extensions" depends="debug-yes,base,extensions" /> |
||
172 | |||
173 | 9776 | cesar | <property name="encoding" value="ISO_8859_1" /> |
174 | <property name="sourceVersion" value="1.4" /> |
||
175 | <property name="targetVersion" value="1.4" /> |
||
176 | |||
177 | 5849 | cesar | <target name="base" |
178 | description="Builds the application, excluding extensions"> |
||
179 | 10187 | jmvivo | <property file="build.number"/> |
180 | 9776 | cesar | <!-- 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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
186 | <property name="debuglevel" value="${debuglevel}"/> |
||
187 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
188 | <property name="projectName" value="${i18n}" /> |
||
189 | 6296 | cesar | </ant>
|
190 | 9776 | cesar | <!-- 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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
196 | <property name="debuglevel" value="${debuglevel}"/> |
||
197 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
198 | <property name="projectName" value="${exceptions}" /> |
||
199 | 6296 | cesar | </ant>
|
200 | 9776 | cesar | <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 | 7210 | cesar | <ant dir="${andami}" target="batch-build" inheritAll="false"> |
210 | 6296 | cesar | <property name="debug" value="${debug}"/> |
211 | <property name="debuglevel" value="${debuglevel}"/> |
||
212 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
213 | 6296 | cesar | </ant>
|
214 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
219 | <property name="debuglevel" value="${debuglevel}"/> |
||
220 | 9776 | cesar | <property name="installBaseDir" value="${global.installBaseDir}"/> |
221 | <property name="encoding" value="${encoding}"/> |
||
222 | <property name="projectName" value="${libui}" /> |
||
223 | 6296 | cesar | </ant>
|
224 | 10187 | jmvivo | <ant dir="${core}" target="import-build-number" inheritAll="false"> |
225 | <property name="buildNumberFile" location="build.number"/> |
||
226 | </ant>
|
||
227 | 6296 | cesar | <ant dir="${core}" target="batch-build" inheritAll="false"> |
228 | <property name="debug" value="${debug}"/> |
||
229 | <property name="debuglevel" value="${debuglevel}"/> |
||
230 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
231 | 6296 | cesar | </ant>
|
232 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
237 | <property name="debuglevel" value="${debuglevel}"/> |
||
238 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
239 | <property name="projectName" value="${cms}" /> |
||
240 | 6296 | cesar | </ant>
|
241 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
246 | <property name="debuglevel" value="${debuglevel}"/> |
||
247 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
248 | <property name="projectName" value="${driver}" /> |
||
249 | 6296 | cesar | </ant>
|
250 | 9776 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
255 | <property name="debuglevel" value="${debuglevel}"/> |
||
256 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
257 | <property name="projectName" value="${remote}" /> |
||
258 | 6296 | cesar | </ant>
|
259 | <ant dir="${gdbms}" target="batch-build" inheritAll="false"> |
||
260 | <property name="debug" value="${debug}"/> |
||
261 | <property name="debuglevel" value="${debuglevel}"/> |
||
262 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
263 | 6296 | cesar | </ant>
|
264 | <ant dir="${fmap}" target="batch-build" inheritAll="false"> |
||
265 | <property name="debug" value="${debug}"/> |
||
266 | <property name="debuglevel" value="${debuglevel}"/> |
||
267 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
268 | 6296 | cesar | </ant>
|
269 | <ant dir="${gvSIG}" target="batch-build" inheritAll="false"> |
||
270 | <property name="debug" value="${debug}"/> |
||
271 | <property name="debuglevel" value="${debuglevel}"/> |
||
272 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
273 | 6296 | cesar | </ant>
|
274 | 5849 | cesar | </target>
|
275 | |||
276 | 7210 | cesar | <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 | 5849 | cesar | <target name="extensions" depends="base"> |
297 | 7210 | cesar | <condition property="event.Dir" value="${event}" else="voidTarget"> |
298 | <available file="${event}" type="dir"/> |
||
299 | </condition>
|
||
300 | 10187 | jmvivo | <ant dir="${event.Dir}" target="import-build-number" inheritAll="false"> |
301 | <property name="buildNumberFile" location="build.number"/> |
||
302 | </ant>
|
||
303 | 7210 | cesar | <ant dir="${event.Dir}" target="batch-build" inheritAll="false"> |
304 | 6296 | cesar | <property name="debug" value="${debug}"/> |
305 | <property name="debuglevel" value="${debuglevel}"/> |
||
306 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
307 | <property name="projectName" value="${event}" /> |
||
308 | 6296 | cesar | </ant>
|
309 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
314 | <property name="debuglevel" value="${debuglevel}"/> |
||
315 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
316 | <property name="sourceVersion" value="${sourceVersion}" /> |
||
317 | <property name="targetVersion" value="${targetVersion}" /> |
||
318 | <property name="projectName" value="${libdwg}" /> |
||
319 | 6296 | cesar | </ant>
|
320 | 7210 | cesar | <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 | 6296 | cesar | <property name="debug" value="${debug}"/> |
325 | <property name="debuglevel" value="${debuglevel}"/> |
||
326 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
327 | <property name="projectName" value="${extdwg}" /> |
||
328 | 6296 | cesar | </ant>
|
329 | 7210 | cesar | <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget"> |
330 | <available file="${jdbc}" type="dir"/> |
||
331 | </condition>
|
||
332 | 10187 | jmvivo | <ant dir="${jdbc.Dir}" target="import-build-number" inheritAll="false"> |
333 | <property name="buildNumberFile" location="build.number"/> |
||
334 | </ant>
|
||
335 | 7210 | cesar | <ant dir="${jdbc.Dir}" target="batch-build" inheritAll="false"> |
336 | 6296 | cesar | <property name="debug" value="${debug}"/> |
337 | <property name="debuglevel" value="${debuglevel}"/> |
||
338 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
339 | <property name="projectName" value="${jdbc}" /> |
||
340 | 6296 | cesar | </ant>
|
341 | 7210 | cesar | <condition property="cad.Dir" value="${cad}" else="voidTarget"> |
342 | <available file="${cad}" type="dir"/> |
||
343 | </condition>
|
||
344 | 10187 | jmvivo | <ant dir="${cad.Dir}" target="import-build-number" inheritAll="false"> |
345 | <property name="buildNumberFile" location="build.number"/> |
||
346 | </ant>
|
||
347 | 7210 | cesar | <ant dir="${cad.Dir}" target="batch-build" inheritAll="false"> |
348 | 6296 | cesar | <property name="debug" value="${debug}"/> |
349 | <property name="debuglevel" value="${debuglevel}"/> |
||
350 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
351 | <property name="projectName" value="${cad}" /> |
||
352 | 7780 | cesar | </ant>
|
353 | 7210 | cesar | <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
354 | <available file="${appcatalog}" type="dir"/> |
||
355 | </condition>
|
||
356 | 10187 | jmvivo | <ant dir="${appcatalog.Dir}" target="import-build-number" inheritAll="false"> |
357 | <property name="buildNumberFile" location="build.number"/> |
||
358 | </ant>
|
||
359 | 7210 | cesar | <ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false"> |
360 | 6296 | cesar | <property name="debug" value="${debug}"/> |
361 | <property name="debuglevel" value="${debuglevel}"/> |
||
362 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
363 | <property name="projectName" value="${appcatalog}" /> |
||
364 | 6296 | cesar | </ant>
|
365 | 7210 | cesar | <condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
366 | <available file="${catalog}" type="dir"/> |
||
367 | </condition>
|
||
368 | 10187 | jmvivo | <ant dir="${catalog.Dir}" target="import-build-number" inheritAll="false"> |
369 | <property name="buildNumberFile" location="build.number"/> |
||
370 | </ant>
|
||
371 | 7210 | cesar | <ant dir="${catalog.Dir}" target="batch-build" inheritAll="false"> |
372 | 6296 | cesar | <property name="debug" value="${debug}"/> |
373 | <property name="debuglevel" value="${debuglevel}"/> |
||
374 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
375 | <property name="projectName" value="${catalog}" /> |
||
376 | 6296 | cesar | </ant>
|
377 | 7210 | cesar | <condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
378 | <available file="${wcs}" type="dir"/> |
||
379 | </condition>
|
||
380 | 10187 | jmvivo | <ant dir="${wcs.Dir}" target="import-build-number" inheritAll="false"> |
381 | <property name="buildNumberFile" location="build.number"/> |
||
382 | </ant>
|
||
383 | 7210 | cesar | <ant dir="${wcs.Dir}" target="batch-build" inheritAll="false"> |
384 | 6296 | cesar | <property name="debug" value="${debug}"/> |
385 | <property name="debuglevel" value="${debuglevel}"/> |
||
386 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
387 | <property name="projectName" value="${wcs}" /> |
||
388 | 6296 | cesar | </ant>
|
389 | 7210 | cesar | <condition property="wms.Dir" value="${wms}" else="voidTarget"> |
390 | <available file="${wms}" type="dir"/> |
||
391 | </condition>
|
||
392 | 10187 | jmvivo | <ant dir="${wms.Dir}" target="import-build-number" inheritAll="false"> |
393 | <property name="buildNumberFile" location="build.number"/> |
||
394 | </ant>
|
||
395 | 7210 | cesar | <ant dir="${wms.Dir}" target="batch-build" inheritAll="false"> |
396 | 6296 | cesar | <property name="debug" value="${debug}"/> |
397 | <property name="debuglevel" value="${debuglevel}"/> |
||
398 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
399 | <property name="projectName" value="${wms}" /> |
||
400 | 6296 | cesar | </ant>
|
401 | 7210 | cesar | <condition property="dataloc.Dir" value="${dataloc}" else="voidTarget"> |
402 | <available file="${dataloc}" type="dir"/> |
||
403 | </condition>
|
||
404 | 10187 | jmvivo | <ant dir="${dataloc.Dir}" target="import-build-number" inheritAll="false"> |
405 | <property name="buildNumberFile" location="build.number"/> |
||
406 | </ant>
|
||
407 | 7210 | cesar | <ant dir="${dataloc.Dir}" target="batch-build" inheritAll="false"> |
408 | 6296 | cesar | <property name="debug" value="${debug}"/> |
409 | <property name="debuglevel" value="${debuglevel}"/> |
||
410 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
411 | <property name="projectName" value="${dataloc}" /> |
||
412 | 6296 | cesar | </ant>
|
413 | 7210 | cesar | <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget"> |
414 | <available file="${geoprocessing}" type="dir"/> |
||
415 | </condition>
|
||
416 | 10187 | jmvivo | <ant dir="${geoprocessing.Dir}" target="import-build-number" inheritAll="false"> |
417 | <property name="buildNumberFile" location="build.number"/> |
||
418 | </ant>
|
||
419 | 7210 | cesar | <ant dir="${geoprocessing.Dir}" target="batch-build" inheritAll="false"> |
420 | 6296 | cesar | <property name="debug" value="${debug}"/> |
421 | <property name="debuglevel" value="${debuglevel}"/> |
||
422 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
423 | <property name="projectName" value="${geoprocessing}" /> |
||
424 | 6296 | cesar | </ant>
|
425 | 7210 | cesar | <condition property="geoprocessingExtensions.Dir" value="${geoprocessingExtensions}" else="voidTarget"> |
426 | <available file="${geoprocessingExtensions}" type="dir"/> |
||
427 | </condition>
|
||
428 | 10187 | jmvivo | <ant dir="${geoprocessingExtensions.Dir}" target="import-build-number" inheritAll="false"> |
429 | <property name="buildNumberFile" location="build.number"/> |
||
430 | </ant>
|
||
431 | 7210 | cesar | <ant dir="${geoprocessingExtensions.Dir}" target="batch-build" inheritAll="false"> |
432 | 7174 | cesar | <property name="debug" value="${debug}"/> |
433 | <property name="debuglevel" value="${debuglevel}"/> |
||
434 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
435 | <property name="projectName" value="${geoprocessingExtensions}" /> |
||
436 | 7174 | cesar | </ant>
|
437 | 7210 | cesar | <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget"> |
438 | <available file="${georeferencing}" type="dir"/> |
||
439 | </condition>
|
||
440 | 10187 | jmvivo | <ant dir="${georeferencing.Dir}" target="import-build-number" inheritAll="false"> |
441 | <property name="buildNumberFile" location="build.number"/> |
||
442 | </ant>
|
||
443 | 7210 | cesar | <ant dir="${georeferencing.Dir}" target="batch-build" inheritAll="false"> |
444 | 6296 | cesar | <property name="debug" value="${debug}"/> |
445 | <property name="debuglevel" value="${debuglevel}"/> |
||
446 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
447 | <property name="projectName" value="${georeferencing}" /> |
||
448 | 6296 | cesar | </ant>
|
449 | 8048 | cesar | <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget"> |
450 | 7210 | cesar | <available file="${wfs}" type="dir"/> |
451 | </condition>
|
||
452 | 10187 | jmvivo | <ant dir="${rastertools.Dir}" target="import-build-number" inheritAll="false"> |
453 | <property name="buildNumberFile" location="build.number"/> |
||
454 | </ant>
|
||
455 | 7210 | cesar | <ant dir="${rastertools.Dir}" target="batch-build" inheritAll="false"> |
456 | 6296 | cesar | <property name="debug" value="${debug}"/> |
457 | <property name="debuglevel" value="${debuglevel}"/> |
||
458 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
459 | <property name="projectName" value="${rastertools}" /> |
||
460 | 6296 | cesar | </ant>
|
461 | 7210 | cesar | <condition property="wfs.Dir" value="${wfs}" else="voidTarget"> |
462 | <available file="${wfs}" type="dir"/> |
||
463 | </condition>
|
||
464 | 10187 | jmvivo | <ant dir="${wfs.Dir}" target="import-build-number" inheritAll="false"> |
465 | <property name="buildNumberFile" location="build.number"/> |
||
466 | </ant>
|
||
467 | 7210 | cesar | <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false"> |
468 | 6296 | cesar | <property name="debug" value="${debug}"/> |
469 | <property name="debuglevel" value="${debuglevel}"/> |
||
470 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
471 | <property name="projectName" value="${wfs}" /> |
||
472 | 6296 | cesar | </ant>
|
473 | 7210 | cesar | <condition property="centerview.Dir" value="${centerview}" else="voidTarget"> |
474 | <available file="${centerview}" type="dir"/> |
||
475 | </condition>
|
||
476 | 10187 | jmvivo | <ant dir="${centerview.Dir}" target="import-build-number" inheritAll="false"> |
477 | <property name="buildNumberFile" location="build.number"/> |
||
478 | </ant>
|
||
479 | 7210 | cesar | <ant dir="${centerview.Dir}" target="batch-build" inheritAll="false"> |
480 | 6360 | cesar | <property name="debug" value="${debug}"/> |
481 | <property name="debuglevel" value="${debuglevel}"/> |
||
482 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
483 | 6360 | cesar | <property name="installBaseDir" value="${global.installBaseDir}"/> |
484 | 9776 | cesar | <property name="projectName" value="${centerview}" /> |
485 | 6360 | cesar | </ant>
|
486 | 7210 | cesar | <condition property="scripting.Dir" value="${scripting}" else="voidTarget"> |
487 | <available file="${scripting}" type="dir"/> |
||
488 | </condition>
|
||
489 | 10187 | jmvivo | <ant dir="${scripting.Dir}" target="import-build-number" inheritAll="false"> |
490 | <property name="buildNumberFile" location="build.number"/> |
||
491 | </ant>
|
||
492 | 7210 | cesar | <ant dir="${scripting.Dir}" target="batch-build" inheritAll="false"> |
493 | 6360 | cesar | <property name="debug" value="${debug}"/> |
494 | <property name="debuglevel" value="${debuglevel}"/> |
||
495 | 9776 | cesar | <property name="encoding" value="${encoding}"/> |
496 | <property name="projectName" value="${scripting}" /> |
||
497 | 6360 | cesar | </ant>
|
498 | 5849 | cesar | </target>
|
499 | 6296 | cesar | |
500 | 5849 | cesar | <target name="clean-all" |
501 | depends="clean-base,clean-extensions" |
||
502 | description="clean up" /> |
||
503 | |||
504 | 7210 | cesar | <target name="clean-base" |
505 | description="cleans the base components of gvSIG: appgvSIG + libs"> |
||
506 | 5849 | cesar | <!-- Delete the ${build} and ${dist} directory trees -->
|
507 | 9776 | cesar | <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 | 5849 | cesar | <ant dir="${andami}" target="clean"/> |
528 | <ant dir="${core}" target="clean"/> |
||
529 | 9776 | cesar | |
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 | 5849 | cesar | <ant dir="${fmap}" target="clean"/> |
553 | <ant dir="${gvSIG}" target="clean"/> |
||
554 | 9776 | cesar | |
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 | 5849 | cesar | </target>
|
562 | |||
563 | 7210 | cesar | <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 | 9776 | cesar | <ant dir="${event.Dir}" target="clean" inheritAll="false"> |
569 | <property name="projectName" value="${event}" /> |
||
570 | </ant>
|
||
571 | |||
572 | 7210 | cesar | <condition property="libdwg.Dir" value="${libdwg}" else="voidTarget"> |
573 | <available file="${libdwg}" type="dir"/> |
||
574 | </condition>
|
||
575 | 9776 | cesar | <ant dir="${libdwg.Dir}" target="clean" inheritAll="false"> |
576 | <property name="projectName" value="${libdwg}" /> |
||
577 | </ant>
|
||
578 | |||
579 | 7210 | cesar | <condition property="extdwg.Dir" value="${extdwg}" else="voidTarget"> |
580 | <available file="${extdwg}" type="dir"/> |
||
581 | </condition>
|
||
582 | 9776 | cesar | <ant dir="${extdwg.Dir}" target="clean" inheritAll="false"> |
583 | <property name="projectName" value="${extdwg}" /> |
||
584 | </ant>
|
||
585 | |||
586 | 7210 | cesar | <condition property="jdbc.Dir" value="${jdbc}" else="voidTarget"> |
587 | <available file="${jdbc}" type="dir"/> |
||
588 | </condition>
|
||
589 | 9776 | cesar | <ant dir="${jdbc.Dir}" target="clean" inheritAll="false"> |
590 | <property name="projectName" value="${jdbc}" /> |
||
591 | </ant>
|
||
592 | |||
593 | 7210 | cesar | <condition property="cad.Dir" value="${cad}" else="voidTarget"> |
594 | <available file="${cad}" type="dir"/> |
||
595 | </condition>
|
||
596 | 9776 | cesar | <ant dir="${cad.Dir}" target="clean" inheritAll="false"> |
597 | <property name="projectName" value="${cad}" /> |
||
598 | </ant>
|
||
599 | |||
600 | 7210 | cesar | <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
601 | <available file="${appcatalog}" type="dir"/> |
||
602 | </condition>
|
||
603 | 9776 | cesar | <ant dir="${appcatalog.Dir}" target="clean" inheritAll="false"> |
604 | <property name="projectName" value="${appcatalog}" /> |
||
605 | </ant>
|
||
606 | |||
607 | 7210 | cesar | <condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
608 | <available file="${catalog}" type="dir"/> |
||
609 | </condition>
|
||
610 | 9776 | cesar | <ant dir="${catalog.Dir}" target="clean" inheritAll="false"> |
611 | <property name="projectName" value="${catalog}" /> |
||
612 | </ant>
|
||
613 | |||
614 | 7210 | cesar | <condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
615 | <available file="${wcs}" type="dir"/> |
||
616 | </condition>
|
||
617 | 9776 | cesar | <ant dir="${wcs.Dir}" target="clean" inheritAll="false"> |
618 | <property name="projectName" value="${wcs}" /> |
||
619 | </ant>
|
||
620 | |||
621 | 7210 | cesar | <condition property="wms.Dir" value="${wms}" else="voidTarget"> |
622 | <available file="${wms}" type="dir"/> |
||
623 | </condition>
|
||
624 | 9776 | cesar | <ant dir="${wms.Dir}" target="clean" inheritAll="false"> |
625 | <property name="projectName" value="${wms}" /> |
||
626 | </ant>
|
||
627 | |||
628 | 7210 | cesar | <condition property="dataloc.Dir" value="${dataloc}" else="voidTarget"> |
629 | <available file="${dataloc}" type="dir"/> |
||
630 | </condition>
|
||
631 | 9776 | cesar | <ant dir="${dataloc}" target="clean" inheritAll="false"> |
632 | <property name="projectName" value="${dataloc}" /> |
||
633 | </ant>
|
||
634 | |||
635 | 7210 | cesar | <condition property="geoprocessing.Dir" value="${geoprocessing}" else="voidTarget"> |
636 | <available file="${geoprocessing}" type="dir"/> |
||
637 | </condition>
|
||
638 | 9776 | cesar | <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 | 7210 | cesar | <condition property="georeferencing.Dir" value="${georeferencing}" else="voidTarget"> |
650 | <available file="${georeferencing}" type="dir"/> |
||
651 | </condition>
|
||
652 | 9776 | cesar | <ant dir="${georeferencing.Dir}" target="clean" inheritAll="false"> |
653 | <property name="projectName" value="${georeferencing}" /> |
||
654 | </ant>
|
||
655 | |||
656 | 7210 | cesar | <condition property="rastertools.Dir" value="${rastertools}" else="voidTarget"> |
657 | <available file="${rastertools}" type="dir"/> |
||
658 | </condition>
|
||
659 | 9776 | cesar | <ant dir="${rastertools.Dir}" target="clean" inheritAll="false"> |
660 | <property name="projectName" value="${rastertools}" /> |
||
661 | </ant>
|
||
662 | |||
663 | 7210 | cesar | <condition property="wfsg.Dir" value="${wfs}" else="voidTarget"> |
664 | <available file="${wfs}" type="dir"/> |
||
665 | </condition>
|
||
666 | 9776 | cesar | <ant dir="${wfsg.Dir}" target="clean" inheritAll="false"> |
667 | <property name="projectName" value="${wfs}" /> |
||
668 | </ant>
|
||
669 | |||
670 | 7210 | cesar | <condition property="scripting.Dir" value="${scripting}" else="voidTarget"> |
671 | <available file="${scripting}" type="dir"/> |
||
672 | </condition>
|
||
673 | 9776 | cesar | <ant dir="${scripting.Dir}" target="clean" inheritAll="false"> |
674 | <property name="projectName" value="${scripting}" /> |
||
675 | </ant>
|
||
676 | |||
677 | 7210 | cesar | <condition property="centerview.Dir" value="${centerview}" else="voidTarget"> |
678 | <available file="${centerview}" type="dir"/> |
||
679 | </condition>
|
||
680 | 9776 | cesar | <ant dir="${centerview.Dir}" target="clean" inheritAll="false"> |
681 | <property name="projectName" value="${centerview}" /> |
||
682 | </ant>
|
||
683 | 5849 | cesar | </target>
|
684 | |||
685 | 5852 | cesar | <!-- 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 | 6048 | cesar | depends="install-base,install-extensions" |
689 | 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" /> |
690 | 5852 | cesar | |
691 | 7139 | cesar | <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 | 5852 | cesar | |
706 | 7139 | cesar | <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 | 5852 | cesar | |
726 | |||
727 | |||
728 | 6361 | cesar | <!-- The download targets are still no working well (or maybe not working at all...) -->
|
729 | 5849 | cesar | <target name="download" |
730 | 7139 | cesar | description="Not working yet. Downloads all the projects from the CVS HEAD" |
731 | 5849 | cesar | depends="download-base, download-extensions"> |
732 | </target>
|
||
733 | |||
734 | 7139 | cesar | <target name="download-base" description="Not working yet. It will download the base projects required to build gvSIG"> |
735 | 5849 | cesar | <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 | 7139 | cesar | <target name="download-extensions" description="Not working yet. It will download the extensions"> |
752 | 5849 | cesar | </target>
|
753 | 9776 | cesar | |
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 | 312 | fernando | </project>
|