root / tags / v1_1_Build_1010 / applications / appCatalogYNomenclatorClient / build.xml @ 12804
History | View | Annotate | Download (3.09 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 |
<property name="encoding" value="ISO_8859_1"/> |
19 |
|
20 |
|
21 |
<target name="init"> |
22 |
<!-- Create the time stamp -->
|
23 |
<tstamp/> |
24 |
<!-- Create the build directory structure used by compile -->
|
25 |
<buildnumber/> |
26 |
</target>
|
27 |
|
28 |
<target name="import-build-number"> |
29 |
<copy todir="."> |
30 |
<fileset file="${buildNumberFile}"/> |
31 |
</copy>
|
32 |
</target>
|
33 |
|
34 |
<target name="build-for-eclipse" |
35 |
description="generates the jar and moves it to the target dir, but doesn't compile the sources" |
36 |
depends="create-jar,move-to-targetDir"> |
37 |
<!-- this is not normally used, as extCatalog already builds appCatalog, but
|
38 |
we include it here and make something meaningful, just in case the user
|
39 |
wants to build only appCatalog.-->
|
40 |
</target>
|
41 |
|
42 |
<target name="batch-build" |
43 |
description="compile the source" |
44 |
depends="compile,create-jar,move-to-targetDir"> |
45 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
46 |
</target>
|
47 |
|
48 |
<target name="compile"> |
49 |
<mkdir dir="${build}"/> |
50 |
<javac
|
51 |
srcdir="${src}" |
52 |
destdir="${build}" |
53 |
source="${JavaSourceVersion}" |
54 |
target="${JavaTargetVersion}" |
55 |
debug="${debug}" |
56 |
debuglevel="${debuglevel}" |
57 |
classpath="${compile-classpath}" |
58 |
encoding="${encoding}"/> |
59 |
|
60 |
</target>
|
61 |
|
62 |
<target name="create-jar"> |
63 |
<mkdir dir="${dist}" /> |
64 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
65 |
</target>
|
66 |
|
67 |
<target name="move-to-targetDir"> |
68 |
<mkdir dir="${targetDir}" /> |
69 |
<move todir="${targetDir}"> |
70 |
<fileset file="${dist}/${jarName}"/> |
71 |
</move>
|
72 |
</target>
|
73 |
|
74 |
<target name="clean" |
75 |
description="clean up" > |
76 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
77 |
<delete includeemptydirs="true" failonerror="no"> |
78 |
<fileset dir="${build}" includes="**"/> |
79 |
<fileset dir="${dist}" includes="**"/> |
80 |
</delete>
|
81 |
</target>
|
82 |
|
83 |
</project>
|
84 |
|