Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libRemoteServices / build.xml @ 13296

History | View | Annotate | Download (3.01 KB)

1
<project name="libRemoteServices" default="dist" basedir=".">
2
        <description>
3
        Genera el jar con RemoteClient y sus dependencias
4
    </description>
5
        <!-- 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
        <property name="jarName" value="remote-clients" />
14
        <property name="targetDir" location="../libFMap/lib" />
15
        <!--<property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" />-->
16
        <import file="../binaries/ant/utilities.xml"/>
17

    
18
        <target name="init">
19
                <!-- Create the time stamp -->
20
                <tstamp />
21
                <echo>
22
                        Compiling ${ant.project.name}...</echo>
23
                <!-- Create the build directory structure used by compile -->
24
                <mkdir dir="${build}" />
25
        </target>
26

    
27
        <target name="dist" depends="init" description="generate the distribution">
28
                <!-- Create the distribution directory -->
29
                <mkdir dir="${dist}" />
30

    
31
                <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
32
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" />
33
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" />
34

    
35
                <move todir="${targetDir}/">
36
                        <fileset dir="${dist}" includes="**/**" />
37
                </move>
38
                <copy todir="${targetDir}/">
39
                        <fileset dir="${lib}" includes="*.jar" />
40
                </copy>
41
        </target>
42

    
43
        <target                name="batch-build"
44
                                description="compile the sources, create the jar file"
45
                                depends="init,compile,create-jar,move-to-fmap">
46
        </target>
47

    
48
        <target name="compile" description="compile the source">
49
                <!-- Compile the Java code from ${src} to ${build} -->
50
                <mkdir dir="${build}" />
51
                <loadEclipseClasspath project="${basedir}"/>
52
                <gvSIG-javac
53
                        classpath="${eclipseClasspath}"
54
                        excludes="**/Tests/*.java"/>
55
                <!--<javac        srcdir="${src}"
56
                                destdir="${build}"
57
                                source="1.4"
58
                                target="1.4"
59
                                classpath="${compile-classpath}"
60
                                debug="${debug}"
61
                                debuglevel="${debuglevel}"
62
                                excludes="**/Tests/*.java" />-->
63
        </target>
64

    
65
        <target name="move-to-fmap" description="Move jars and required libraries to fmap">
66
                <copy todir="${targetDir}">
67
                        <fileset dir="./lib" includes="*.jar" />
68
                </copy>
69
                <copy todir=".">
70
                        <fileset dir="${dist}" includes="${jarName}.jar" />
71
                </copy>
72
                <move todir="${targetDir}/">
73
                        <fileset dir="${dist}" includes="**/**" />
74
                </move>
75
        </target>
76

    
77
        <target name="create-jar" description="Crea el jar de la aplicacion">
78
                <mkdir dir="${dist}" />
79
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" />
80
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" />
81
        </target>
82

    
83
        <target name="clean" description="clean up">
84
                <!-- Delete the ${build} and ${dist} directory trees -->
85
                <delete dir="${build}" />
86
                <delete dir="${dist}" />
87
        </target>
88
</project>
89