Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libRemoteServices / build.xml @ 26938

History | View | Annotate | Download (2.75 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="src-test" location="test" />
9
        <property name="build-test" location="bin-test" />
10
        <property name="dist" location="dist" />
11
        <property name="lib" location="lib" />
12
        <property name="andamiJar" location="../_fwAndami/andami.jar" />
13
        <property name="andamiLibs" location="../_fwAndami/lib" />
14
        <property name="fmapLibs" location="../libFMap" />
15
        <property name="jarName" value="remote-clients" />
16
        <property name="targetDir" location="../libFMap/lib" />
17
        <!--<property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" />-->
18
        <import file="../binaries/ant/utilities.xml"/>
19

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

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

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

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

    
42
        <target                name="dist"
43
                                description="compile the sources, create the jar file"
44
                                depends="init,create-jar">
45
        </target>
46

    
47
        <target                name="batch-build"
48
                                description="compile the sources, create the jar file"
49
                                depends="init,compile,create-jar">
50
        </target>
51

    
52
        <target name="compile" description="compile the source">
53
                <!-- Compile the Java code from ${src} to ${build} -->
54
                <mkdir dir="${build}" />
55
                <loadEclipseClasspath project="${basedir}"/>
56
                <gvSIG-javac
57
                        classpath="${eclipseClasspath}"/>
58
        </target>
59

    
60
        <target name="create-jar" description="Crea el jar de la aplicacion">
61
                <mkdir dir="${dist}" />
62
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" />
63
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" />
64
        </target>
65

    
66
        <target name="clean" description="clean up">
67
                <!-- Delete the ${build} and ${dist} directory trees -->
68
                <delete dir="${build}" />
69
                <delete dir="${dist}" />
70
        </target>
71

    
72
        <target name="run-tests" depends="batch-build,compile-tests">
73
                <antcall target="generic-run-tests">
74
                        <param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/>
75
                </antcall>
76
        </target>
77
</project>
78