svn-gvsig-desktop / tags / v1_0_1_RELEASE / applications / appCatalogYNomenclatorClient / build.xml @ 9531
History | View | Annotate | Download (2.76 KB)
1 |
<project name="Generar extension en Andami" default="build-for-eclipse" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin en Andami |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="fmap" location="../libFMap"/> |
7 |
<property name="andami" location="../_fwAndami"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="src" location="src"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="lib" location="lib"/> |
12 |
<property name="andamiLibs" location="${andami}/lib"/> |
13 |
<property name="targetDir" location="../extCatalogYNomenclator/dist/lib"/> |
14 |
<property name="jarName" value="catCliProto.jar"/> |
15 |
<property name="compile-classpath" value="${lib}/a2j_v2-2.0.9.jar:${lib}/a2jruntime.jar:${lib}/activation.jar:${lib}/commons-beanutils.jar:${lib}/commons-codec.jar:${lib}/commons-httpclient-2.0.2.jar:${lib}/commons-logging.jar:${lib}/cql-java-1.0.0.jar:${lib}/junit.jar:${lib}/jzkit2_core-2.0.0.jar:${lib}/jzkit2_z3950_plugin-2.0.0.jar:${lib}/log4j-1.2.4.jar:${lib}/mail.jar:${lib}/soap.jar:${lib}/ostermillerutils_1_04_03_for_java_1_4.jar:${lib}/spring.jar:${lib}/xalan.jar:${lib}/amic-util.jar:${andamiLibs}/xerces_2_5_0.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/gvsig-i18n.jar"/> |
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp/> |
20 |
<!-- Create the build directory structure used by compile -->
|
21 |
<buildnumber/> |
22 |
</target>
|
23 |
|
24 |
<target name="build-for-eclipse" |
25 |
description="generates the jar and moves it to the target dir, but doesn't compile the sources" |
26 |
depends="create-jar,move-to-targetDir"> |
27 |
<!-- this is not normally used, as extCatalog already builds appCatalog, but
|
28 |
we include it here and make something meaningful, just in case the user
|
29 |
wants to build only appCatalog.-->
|
30 |
</target>
|
31 |
|
32 |
<target name="batch-build" |
33 |
description="compile the source" |
34 |
depends="compile,create-jar,move-to-targetDir"> |
35 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
36 |
</target>
|
37 |
|
38 |
<target name="compile"> |
39 |
<mkdir dir="${build}"/> |
40 |
<javac
|
41 |
srcdir="${src}" |
42 |
destdir="${build}" |
43 |
source="1.4" |
44 |
target="1.4" |
45 |
debug="${debug}" |
46 |
debuglevel="${debuglevel}" |
47 |
classpath="${compile-classpath}"/> |
48 |
|
49 |
</target>
|
50 |
|
51 |
<target name="create-jar"> |
52 |
<mkdir dir="${dist}" /> |
53 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
54 |
</target>
|
55 |
|
56 |
<target name="move-to-targetDir"> |
57 |
<mkdir dir="${targetDir}" /> |
58 |
<move todir="${targetDir}"> |
59 |
<fileset file="${dist}/${jarName}"/> |
60 |
</move>
|
61 |
</target>
|
62 |
|
63 |
<target name="clean" |
64 |
description="clean up" > |
65 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
66 |
<delete includeemptydirs="true" failonerror="no"> |
67 |
<fileset dir="${build}" includes="**"/> |
68 |
<fileset dir="${dist}" includes="**"/> |
69 |
</delete>
|
70 |
</target>
|
71 |
|
72 |
</project>
|
73 |
|