Statistics
| Revision:

svn-gvsig-desktop / tags / BN72 / libraries / libArcIMS / build.xml @ 42980

History | View | Annotate | Download (2.39 KB)

1 8109 jsanz
<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
        <target name="init">
20
                <!-- Create the time stamp -->
21
                <tstamp/>
22
                <!-- Create the build directory structure used by compile -->
23
                <mkdir dir="${build}"/>
24
        </target>
25
26
        <target name="compile" description="compile the source">
27
                <!-- Compile the Java code from ${src} to ${bin} -->
28
                <javac srcdir="${src}" destdir="${build}"
29
                        classpath="${andami}/andami.jar:${fmap}/lib/driver-manager-1.0.jar:${andami}/lib/tempFileManager.jar:lib/kxml2.jar:lib/junit.jar"/>
30
        </target>
31
32
        <target name="dist" description="generate the distribution">
33
                <!-- Create the distribution directory -->
34
                <mkdir dir="${dist}"/>
35
36
                <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
37
                <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/>
38
                <jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif"
39
                        update="true"/>
40
41
                <copy todir="${targetDir3}">
42
                        <fileset dir="${dist}" includes="${jar}.jar"/>
43
                </copy>
44
45
                <move todir="${targetDir2}/">
46
                        <fileset dir="${dist}" includes="**/**"/>
47
                </move>
48
                <copy todir="${targetDir2}/">
49
                        <fileset dir="${lib}" includes="*.jar"/>
50
                </copy>
51
52
53
                <!--   <move todir="${targetDir}/">
54
                <fileset dir="${dist}" includes="**/**"/>
55
                </move>-->
56
        </target>
57
58
        <target name="clean" description="clean up">
59
                <!-- Delete the ${build} and ${dist} directory trees -->
60
                <delete includeemptydirs="true" failonerror="no">
61
                        <fileset dir="${build}" includes="**/*"/>
62
                </delete>
63
                <delete includeemptydirs="true" failonerror="no">
64
                        <fileset dir="${dist}" includes="**/*"/>
65
                </delete>
66
        </target>
67
</project>
68