Statistics
| Revision:

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

History | View | Annotate | Download (4 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="fmapLibs" location="${fmap}/lib"/>
14
        <property name="targetDir" location="../extCatalogAndGazetteer/dist/lib"/>
15
        <property name="jarName" value="catCliProto.jar"/>
16
        <!--<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
        <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.8.jar:${fmapLibs}/jts-1.8.jar:${fmapLibs}/org.gvsig.exceptions.jar"/>
18
        <property name="JavaSourceVersion" value="1.4"/>
19
        <property name="JavaTargetVersion" value="1.4"/>
20
        <property name="encoding" value="ISO_8859_1"/>
21

    
22

    
23
  <target name="init">
24
    <!-- Create the time stamp -->
25
    <tstamp/>
26
    <!-- Create the build directory structure used by compile -->
27
          <buildnumber/>
28
  </target>
29

    
30
          <target name="import-build-number">
31
                  <copy todir=".">
32
                          <fileset file="${buildNumberFile}"/>
33
                  </copy>
34
          </target>
35

    
36
        <target name="build-for-eclipse"
37
                        description="generates the jar and moves it to the target dir, but doesn't compile the sources"
38
                        depends="create-jar,move-to-targetDir">
39
                <!-- this is not normally used, as extCatalog already builds appCatalog, but
40
                         we include it here and make something meaningful, just in case the user
41
                         wants to build only appCatalog.-->
42
        </target>
43

    
44
    <target name="batch-build"
45
                description="compile the source"
46
                    depends="compile,create-jar,move-to-targetDir">
47
             <!-- Compile the Java code from ${src} to ${bin} -->
48
  </target>
49

    
50
        <target name="compile">
51
                <mkdir dir="${build}"/>
52
                <javac
53
                                srcdir="${src}"
54
                                destdir="${build}"
55
                            source="${JavaSourceVersion}"
56
                                target="${JavaTargetVersion}"
57
                                debug="${debug}"
58
                                debuglevel="${debuglevel}"
59
                                encoding="${encoding}"
60
                                classpath="${compile-classpath}"/>
61

    
62
                <copy todir="${build}">
63
                        <fileset dir="${src}">
64
                                <include name="**/**"/>
65
                                <exclude name="**/*.java"/>
66
                                <exclude name="**/.CVS"/>
67
                        </fileset>
68

    
69
                </copy>
70
        </target>
71

    
72
        <target name="create-jar">
73
                <mkdir dir="${dist}" />
74
            <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
75
        </target>
76

    
77
        <target name="move-to-targetDir">
78
                <mkdir dir="${targetDir}" />
79
                  <move todir="${targetDir}">
80
                    <fileset file="${dist}/${jarName}"/>
81
            </move>
82
        </target>
83

    
84
  <target name="clean"
85
        description="clean up" >
86
    <!-- Delete the ${build} and ${dist} directory trees -->
87
        <delete includeemptydirs="true" failonerror="no">
88
        <fileset dir="${build}" includes="**"/>
89
        <fileset dir="${dist}" includes="**"/>
90
    </delete>
91
  </target>
92

    
93
</project>
94