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