Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_2_Build_1044 / applications / appCatalogAndGazetteerClient / build.xml @ 44549

History | View | Annotate | Download (4.16 KB)

1 16004 jpiera
<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 18864 jpiera
        <property name="gpe" location="../extGPE-gvSIG"/>
9 16004 jpiera
        <property name="build" location="bin"/>
10
        <property name="src" location="src"/>
11
        <property name="dist" location="dist"/>
12
        <property name="lib" location="lib"/>
13
        <property name="andamiLibs" location="${andami}/lib"/>
14 16144 jmvivo
        <property name="fmapLibs" location="${fmap}/lib"/>
15 18864 jpiera
        <property name="gpeLibs" location="${gpe}/lib"/>
16 16695 jmvivo
        <property name="targetDir" location="../extCatalogAndGazetteer/dist/lib"/>
17 16004 jpiera
        <property name="jarName" value="catCliProto.jar"/>
18 16144 jmvivo
        <!--<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"/>-->
19 18864 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:${fmapLibs}/remote-clients.jar:${fmapLibs}/jtsio-1.7.jar:${fmapLibs}/jts-1.7.jar:${gpeLibs}/org.gvsig.gpe.jar:${gpeLibs}/gvsig-exceptions.jar:${gpeLibs}/org.gvsig.gpe.gml.jar"/>
20 16004 jpiera
        <property name="JavaSourceVersion" value="1.4"/>
21
        <property name="JavaTargetVersion" value="1.4"/>
22 16144 jmvivo
        <property name="encoding" value="ISO_8859_1"/>
23 16004 jpiera
24
25
  <target name="init">
26
    <!-- Create the time stamp -->
27
    <tstamp/>
28
    <!-- Create the build directory structure used by compile -->
29
          <buildnumber/>
30
  </target>
31
32
          <target name="import-build-number">
33
                  <copy todir=".">
34
                          <fileset file="${buildNumberFile}"/>
35
                  </copy>
36
          </target>
37
38
        <target name="build-for-eclipse"
39
                        description="generates the jar and moves it to the target dir, but doesn't compile the sources"
40
                        depends="create-jar,move-to-targetDir">
41
                <!-- this is not normally used, as extCatalog already builds appCatalog, but
42
                         we include it here and make something meaningful, just in case the user
43
                         wants to build only appCatalog.-->
44
        </target>
45
46
    <target name="batch-build"
47
                description="compile the source"
48
                    depends="compile,create-jar,move-to-targetDir">
49
             <!-- Compile the Java code from ${src} to ${bin} -->
50
  </target>
51
52
        <target name="compile">
53
                <mkdir dir="${build}"/>
54
                <javac
55
                                srcdir="${src}"
56
                                destdir="${build}"
57
                            source="${JavaSourceVersion}"
58
                                target="${JavaTargetVersion}"
59
                                debug="${debug}"
60
                                debuglevel="${debuglevel}"
61 16144 jmvivo
                                encoding="${encoding}"
62 16004 jpiera
                                classpath="${compile-classpath}"/>
63
64 16144 jmvivo
                <copy todir="${build}">
65
                        <fileset dir="${src}">
66
                                <include name="**/**"/>
67
                                <exclude name="**/*.java"/>
68
                                <exclude name="**/.CVS"/>
69
                        </fileset>
70
71
                </copy>
72 16004 jpiera
        </target>
73 16144 jmvivo
74 16004 jpiera
        <target name="create-jar">
75
                <mkdir dir="${dist}" />
76
            <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
77
        </target>
78 16144 jmvivo
79 16004 jpiera
        <target name="move-to-targetDir">
80
                <mkdir dir="${targetDir}" />
81
                  <move todir="${targetDir}">
82
                    <fileset file="${dist}/${jarName}"/>
83
            </move>
84
        </target>
85
86
  <target name="clean"
87
        description="clean up" >
88
    <!-- Delete the ${build} and ${dist} directory trees -->
89
        <delete includeemptydirs="true" failonerror="no">
90
        <fileset dir="${build}" includes="**"/>
91
        <fileset dir="${dist}" includes="**"/>
92
    </delete>
93
  </target>
94
95
</project>