root / tags / v1_0_2_Build_903 / applications / appCatalogYNomenclatorClient / build.xml @ 10704
History | View | Annotate | Download (3.02 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 |
<property name="JavaSourceVersion" value="1.4"/> |
17 |
<property name="JavaTargetVersion" value="1.4"/> |
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 |
<mkdir dir="${build}"/> |
49 |
<javac
|
50 |
srcdir="${src}" |
51 |
destdir="${build}" |
52 |
source="${JavaSourceVersion}" |
53 |
target="${JavaTargetVersion}" |
54 |
debug="${debug}" |
55 |
debuglevel="${debuglevel}" |
56 |
classpath="${compile-classpath}"/> |
57 |
|
58 |
</target>
|
59 |
|
60 |
<target name="create-jar"> |
61 |
<mkdir dir="${dist}" /> |
62 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
63 |
</target>
|
64 |
|
65 |
<target name="move-to-targetDir"> |
66 |
<mkdir dir="${targetDir}" /> |
67 |
<move todir="${targetDir}"> |
68 |
<fileset file="${dist}/${jarName}"/> |
69 |
</move>
|
70 |
</target>
|
71 |
|
72 |
<target name="clean" |
73 |
description="clean up" > |
74 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
75 |
<delete includeemptydirs="true" failonerror="no"> |
76 |
<fileset dir="${build}" includes="**"/> |
77 |
<fileset dir="${dist}" includes="**"/> |
78 |
</delete>
|
79 |
</target>
|
80 |
|
81 |
</project>
|
82 |
|