Revision 5577
branches/v10alpha_tecnimap/applications/appCatalogYNomenclatorClient/build.xml | ||
---|---|---|
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}/a2jruntime.jar:${lib}/activation.jar:${lib}/commons-codec.jar:${lib}/commons-httpclient-2.0.2.jar:${lib}/commons-logging.jar:${lib}/junit.jar:${lib}/ki-jzkit-hss.jar:${lib}/ki-jzkit-iface.jar:${lib}/ki-jzkit-z3950.jar:${lib}/ki-util.jar:${lib}/log4j-1.2.4.jar:${lib}/mail.jar:${lib}/soap.jar:${lib}/ostermillerutils_1_04_03_for_java_1_4.jar:${lib}/xalan.jar:${lib}/amic-util.jar:${andamiLibs}/xerces_2_5_0.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/gvsig-i18n.jar"/> |
|
16 |
|
|
17 |
|
|
18 |
<target name="init"> |
|
19 |
<!-- Create the time stamp --> |
|
20 |
<tstamp/> |
|
21 |
<!-- Create the build directory structure used by compile --> |
|
22 |
<buildnumber/> |
|
23 |
</target> |
|
24 |
|
|
25 |
<target name="build-for-eclipse" |
|
26 |
description="generates the jar and moves it to the target dir, but doesn't compile the sources" |
|
27 |
depends="create-jar,move-to-targetDir"> |
|
28 |
<!-- this is not normally used, as extCatalog already builds appCatalog, but |
|
29 |
we include it here and make something meaningful, just in case the user |
|
30 |
wants to build only appCatalog.--> |
|
31 |
</target> |
|
32 |
|
|
33 |
<target name="batch-build" |
|
34 |
description="compile the source" |
|
35 |
depends="compile,create-jar,move-to-targetDir"> |
|
36 |
<!-- Compile the Java code from ${src} to ${bin} --> |
|
37 |
</target> |
|
38 |
|
|
39 |
<target name="compile"> |
|
40 |
<javac |
|
41 |
srcdir="${src}" |
|
42 |
destdir="${build}" |
|
43 |
classpath="${compile-classpath}"/> |
|
44 |
|
|
45 |
</target> |
|
46 |
|
|
47 |
<target name="create-jar"> |
|
48 |
<mkdir dir="${dist}" /> |
|
49 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
|
50 |
</target> |
|
51 |
|
|
52 |
<target name="move-to-targetDir"> |
|
53 |
<mkdir dir="${targetDir}" /> |
|
54 |
<move todir="${targetDir}"> |
|
55 |
<fileset file="${dist}/${jarName}"/> |
|
56 |
</move> |
|
57 |
</target> |
|
58 |
|
|
59 |
<target name="clean" |
|
60 |
description="clean up" > |
|
61 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
62 |
<delete includeemptydirs="true" failonerror="no"> |
|
63 |
<fileset dir="${build}" includes="**"/> |
|
64 |
<fileset dir="${dist}" includes="**"/> |
|
65 |
</delete> |
|
66 |
</target> |
|
67 |
|
|
68 |
</project> |
|
69 |
|
|
0 | 70 |
Also available in: Unified diff