Statistics
| Revision:

svn-gvsig-desktop / tags / v1_9_Build_1239 / libraries / libArcIMS / build.xml @ 41849

History | View | Annotate | Download (2.57 KB)

1
<project name="RemoteClient" default="dist" basedir=".">
2
        <description> Genera el jar con RemoteClient y sus dependencias </description>
3
        <!-- set global properties for this build -->
4
        <property name="src" location="src"/>
5
        <property name="build" location="bin"/>
6
        <property name="dist" location="dist"/>
7
        <property name="lib" location="lib"/>
8
        <property name="jar" value="remote-clients-arcims"/>
9
        <property name="targetDir" location="."/>
10
        <property name="targetDir2" location="../extArcims/lib"/>
11
        <property name="fmap" location="../libFMap"/>
12
        <property name="andami" location="../_fwAndami"/>
13

    
14
        <!-- to move the lib directly to andami without having to run extArcims build.xml-->
15
        <property name="extensionDir" location="${andami}/gvSIG/extensiones"/>
16
        <property name="mainplugin" value="com.iver.cit.gvsig"/>
17
        <property name="targetDir3" location="${extensionDir}/${mainplugin}/lib"/>
18

    
19
        <import file="../binaries/ant/utilities.xml"/>
20

    
21
        <target name="init">
22
                <!-- Create the build directory structure used by compile -->
23
                <mkdir dir="${build}"/>
24
                <mkdir dir="${dist}"/>
25

    
26
        </target>
27

    
28
        <target name="compile" depends="init" description="compile the source">
29
                <!-- Compile the Java code from ${src} to ${bin} -->
30
                <loadEclipseClasspath project="${basedir}"/>
31
                <gvSIG-javac
32
                        classpath="${eclipseClasspath}"/>
33
        </target>
34

    
35
        <target name="batch-build"
36
                        description="compile the sources, create the jar file"
37
                        depends="compile,create-jar,copy-files">
38
        </target>
39

    
40
        <target name="dist" depends="init,create-jar,copy-files" description="generate the distribution">
41

    
42
                <!--   <move todir="${targetDir}/">
43
                <fileset dir="${dist}" includes="**/**"/>
44
                </move>-->
45
        </target>
46

    
47
        <target name="copy-files">
48
                <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
49

    
50
                <copy todir="${targetDir3}">
51
                        <fileset dir="${dist}" includes="${jar}.jar"/>
52
                </copy>
53

    
54
                <move todir="${targetDir2}/">
55
                        <fileset dir="${dist}" includes="**/**"/>
56
                </move>
57
                <copy todir="${targetDir2}/">
58
                        <fileset dir="${lib}" includes="*.jar"/>
59
                </copy>
60

    
61
        </target>
62

    
63
        <target name="create-jar"
64
                        description="Creates the library jars">
65
                <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/>
66
                <jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif"
67
                        update="true"/>
68

    
69
        </target>
70

    
71

    
72
        <target name="clean" description="clean up">
73
                <!-- Delete the ${build} and ${dist} directory trees -->
74
                <delete includeemptydirs="true" failonerror="no">
75
                        <fileset dir="${build}" includes="**/*"/>
76
                </delete>
77
                <delete includeemptydirs="true" failonerror="no">
78
                        <fileset dir="${dist}" includes="**/*"/>
79
                </delete>
80
        </target>
81
</project>
82

    
83