Statistics
| Revision:

root / trunk / applications / appCatalogAndGazetteerClient / build.xml @ 38628

History | View | Annotate | Download (2.98 KB)

1 16171 jpiera
<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 16171 jpiera
        <property name="fmapLibs" location="${fmap}/lib"/>
14 16336 jmvivo
        <property name="targetDir" location="../extCatalogAndGazetteer/dist/lib"/>
15 5614 cesar
        <property name="jarName" value="catCliProto.jar"/>
16 16171 jpiera
        <!--<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"/>-->
17 17354 jmvivo
        <import file="../binaries/ant/utilities.xml"/>
18 5613 cesar
19 12272 cesar
20 5613 cesar
  <target name="init">
21
    <!-- Create the time stamp -->
22
    <tstamp/>
23
    <!-- Create the build directory structure used by compile -->
24 5614 cesar
          <buildnumber/>
25 5613 cesar
  </target>
26 13126 jmvivo
27 10187 jmvivo
          <target name="import-build-number">
28
                  <copy todir=".">
29
                          <fileset file="${buildNumberFile}"/>
30
                  </copy>
31
          </target>
32
33 5614 cesar
        <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 5613 cesar
41 5614 cesar
    <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 5613 cesar
  </target>
46
47 5614 cesar
        <target name="compile">
48 5684 cesar
                <mkdir dir="${build}"/>
49 27095 jpiera
                <antcall target="gvSIG-import-build-number"/>
50 17354 jmvivo
                <mkdir dir="${build}" />
51
                <loadEclipseClasspath project="${basedir}"/>
52
                <gvSIG-javac
53
                        classpath="${eclipseClasspath}"/>
54 5613 cesar
        </target>
55 16171 jpiera
56 5614 cesar
        <target name="create-jar">
57
                <mkdir dir="${dist}" />
58
            <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
59 5613 cesar
        </target>
60 16171 jpiera
61 5614 cesar
        <target name="move-to-targetDir">
62 8565 cesar
                <mkdir dir="${targetDir}" />
63
                  <move todir="${targetDir}">
64 5614 cesar
                    <fileset file="${dist}/${jarName}"/>
65 5613 cesar
            </move>
66
        </target>
67
68 5614 cesar
  <target name="clean"
69 5613 cesar
        description="clean up" >
70
    <!-- Delete the ${build} and ${dist} directory trees -->
71 5614 cesar
        <delete includeemptydirs="true" failonerror="no">
72
        <fileset dir="${build}" includes="**"/>
73
        <fileset dir="${dist}" includes="**"/>
74
    </delete>
75 5613 cesar
  </target>
76
77
</project>