svn-gvsig-desktop / trunk / applications / appCatalogYNomenclatorClient / build.xml @ 13841
History | View | Annotate | Download (2.62 KB)
1 |
<project name="appCatalogAndGazetteerClient" default="build-for-eclipse" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin en Andami |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<import file="../binaries/ant/utilities.xml"/> |
7 |
<property name="fmap" location="../libFMap"/> |
8 |
<property name="andami" location="../_fwAndami"/> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="src" location="src"/> |
11 |
<property name="build-test" location="bin-test"/> |
12 |
<property name="src-test" location="src-test"/> |
13 |
<property name="dist" location="dist"/> |
14 |
<property name="lib" location="lib"/> |
15 |
<property name="andamiLibs" location="${andami}/lib"/> |
16 |
<property name="targetDir" location="../extCatalogYNomenclator/dist/lib"/> |
17 |
<property name="jarName" value="catCliProto.jar"/> |
18 |
|
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp/> |
23 |
<!-- Create the build directory structure used by compile -->
|
24 |
<buildnumber/> |
25 |
</target>
|
26 |
|
27 |
<target name="import-build-number"> |
28 |
<copy todir="."> |
29 |
<fileset file="${buildNumberFile}"/> |
30 |
</copy>
|
31 |
</target>
|
32 |
|
33 |
<target name="build-for-eclipse" |
34 |
description="generates the jar and moves it to the target dir, but doesn't compile the sources" |
35 |
depends="create-jar,move-to-targetDir"> |
36 |
<!-- this is not normally used, as extCatalog already builds appCatalog, but
|
37 |
we include it here and make something meaningful, just in case the user
|
38 |
wants to build only appCatalog.-->
|
39 |
</target>
|
40 |
|
41 |
<target name="batch-build" |
42 |
description="compile the source" |
43 |
depends="compile,create-jar,move-to-targetDir"> |
44 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
45 |
</target>
|
46 |
|
47 |
<target name="compile"> |
48 |
<antcall target="gvSIG-import-build-number"/> |
49 |
<mkdir dir="${build}"/> |
50 |
<loadEclipseClasspath project="${basedir}"/> |
51 |
<gvSIG-javac
|
52 |
classpath="${eclipseClasspath}"/> |
53 |
</target>
|
54 |
|
55 |
<target name="create-jar"> |
56 |
<mkdir dir="${dist}" /> |
57 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
58 |
</target>
|
59 |
|
60 |
<target name="move-to-targetDir"> |
61 |
<mkdir dir="${targetDir}" /> |
62 |
<move todir="${targetDir}"> |
63 |
<fileset file="${dist}/${jarName}"/> |
64 |
</move>
|
65 |
</target>
|
66 |
|
67 |
<target name="clean" |
68 |
description="clean up" > |
69 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
70 |
<delete includeemptydirs="true" failonerror="no"> |
71 |
<fileset dir="${build}" includes="**"/> |
72 |
<fileset dir="${dist}" includes="**"/> |
73 |
</delete>
|
74 |
</target>
|
75 |
|
76 |
<target name="run-tests" depends="batch-build,compile-tests"> |
77 |
<antcall target="generic-run-tests"> |
78 |
<param name="TestSuite.Name" value="es.gva.cit.catalogClient.AllTests"/> |
79 |
</antcall>
|
80 |
</target>
|
81 |
</project>
|
82 |
|