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