Statistics
| Revision:

svn-gvsig-desktop / tags / Root_v10 / libraries / libRemoteServices / build.xml @ 37652

History | View | Annotate | Download (2.73 KB)

1 4222 jaume
<project name="RemoteClient" default="dist" basedir=".">
2 4864 cesar
        <description>
3 4222 jaume
        Genera el jar con RemoteClient y sus dependencias
4 3169 ldiaz
    </description>
5 4864 cesar
        <!-- set global properties for this build -->
6
        <property name="src" location="src" />
7
        <property name="build" location="bin" />
8
        <property name="dist" location="dist" />
9
        <property name="lib" location="lib" />
10
        <property name="andamiJar" location="../_fwAndami/andami.jar" />
11
        <property name="andamiLibs" location="../_fwAndami/lib" />
12
        <property name="fmapLibs" location="../libFMap" />
13 4867 cesar
        <property name="jarName" value="remote-clients" />
14 4864 cesar
        <property name="targetDir" location="../libFMap/lib" />
15 4870 cesar
        <property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" />
16 3517 jaume
17 4864 cesar
        <target name="init">
18
                <!-- Create the time stamp -->
19
                <tstamp />
20
                <!-- Create the build directory structure used by compile -->
21
                <mkdir dir="${build}" />
22
        </target>
23 3169 ldiaz
24 4864 cesar
        <target name="dist" depends="init" description="generate the distribution">
25
                <!-- Create the distribution directory -->
26
                <mkdir dir="${dist}" />
27 3169 ldiaz
28 4864 cesar
                <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
29 4867 cesar
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" />
30
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" />
31 3169 ldiaz
32 4864 cesar
                <move todir="${targetDir}/">
33
                        <fileset dir="${dist}" includes="**/**" />
34
                </move>
35
                <copy todir="${targetDir}/">
36
                        <fileset dir="${lib}" includes="*.jar" />
37
                </copy>
38
        </target>
39 3169 ldiaz
40 4867 cesar
        <target                name="batch-build"
41
                                description="compile the sources, create the jar file"
42
                                depends="compile,create-jar,move-to-fmap">
43 4864 cesar
        </target>
44 3169 ldiaz
45 4864 cesar
        <target name="compile" description="compile the source">
46
                <!-- Compile the Java code from ${src} to ${build} -->
47
                <mkdir dir="${build}" />
48
                <javac        srcdir="${src}"
49
                                destdir="${build}"
50
                                classpath="${compile-classpath}"
51 6293 cesar
                                debug="${debug}"
52
                                debuglevel="${debuglevel}"
53 4864 cesar
                                excludes="**/Tests/*.java" />
54
        </target>
55
56
        <target name="move-to-fmap" description="Move jars and required libraries to fmap">
57
                <copy todir="${targetDir}">
58
                        <fileset dir="./lib" includes="*.jar" />
59
                </copy>
60
                <copy todir=".">
61 4867 cesar
                        <fileset dir="${dist}" includes="${jarName}.jar" />
62 4864 cesar
                </copy>
63
                <move todir="${targetDir}/">
64
                        <fileset dir="${dist}" includes="**/**" />
65
                </move>
66
        </target>
67
68
        <target name="create-jar" description="Crea el jar de la aplicacion">
69
                <mkdir dir="${dist}" />
70 4867 cesar
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" />
71
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" />
72 4864 cesar
        </target>
73
74
        <target name="clean" description="clean up">
75
                <!-- Delete the ${build} and ${dist} directory trees -->
76
                <delete dir="${build}" />
77
                <delete dir="${dist}" />
78
        </target>
79 3169 ldiaz
</project>