Statistics
| Revision:

svn-gvsig-desktop / tags / v1_10_0_Build_1257 / libraries / libTopology / build.xml @ 42039

History | View | Annotate | Download (2.98 KB)

1
<project name="libTopology" default="dist" basedir=".">
2
    <description>
3
        Genera el jar con libTopology y sus dependencias
4
    </description>
5
  <!-- set global properties for this build -->
6
        <property name="src" location="src"/>
7
        <property name="src-test" location="src-test"/>
8
        <property name="lib" location="lib"/>
9
        <property name="build" location="bin"/>
10
        <property name="build-test" location="bin-test"/>
11
        <property name="dist"  location="dist"/>
12
        <property name="jarName" value="org.gvsig.topology-lib.jar"/>
13
        <!--This could change, so we could copy this jar in lib directory of extTopology
14
        project-->
15
        <property name="targetDir" location="../libFMap/lib"/>
16
        <property name="topology.home" value="${build}/org/gvsig/topology" />
17
        <property name="i18n" location="../libInternationalization"/>
18
        <property name="i18nLibs" location="${i18n}/lib"/>
19
        <property name="andami" value="../_fwAndami"/>
20
        <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
21
        <import file="../binaries/ant/utilities.xml"/>
22

    
23

    
24
  <target name="init">
25
    <tstamp/>
26
        <echo>
27
                Compiling ${ant.project.name}...
28
        </echo>
29
  </target>
30

    
31

    
32
         <target name="dist" depends="init, create-jar, move-to-andami"
33
                description="generate the distribution" >
34
          </target>
35

    
36
        <target name="batch-build"
37
                                description="compile the sources, create the jar file"
38
                                depends="compile,create-jar,move-to-andami">
39
        </target>
40

    
41
        <target name="compile" description="compile the source" >
42
                <!-- Compile the Java code from ${src} to ${build} -->
43
                <mkdir dir="${build}" />
44
                <loadEclipseClasspath project="${basedir}"/>
45
                <gvSIG-javac
46
                        classpath="${eclipseClasspath}"
47
                />
48
            <copy todir="${topology.home}/i18n/resources/translations">
49
                    <fileset dir="config" includes="*" />
50
            </copy>
51
        </target>
52

    
53
        <target name="create-jar" description="Crea el jar de la aplicacion">
54
                <mkdir dir="${dist}"/>
55
            <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
56
            <jar jarfile="${dist}/${jarName}" basedir="." includes = "images/*" update="true" />
57
        </target>
58

    
59

    
60
        <target name="move-to-fmap" description="Move jars and required libraries to fmap">
61
            <copy todir="${dist}">
62
                    <fileset dir="./lib" includes="*.jar"/>
63
            </copy>
64
            <move todir="${targetDir}/">
65
                    <fileset dir="${dist}" includes="**/**"/>
66
            </move>
67
        </target>
68

    
69
        <target name="move-to-andami" description="Move jars and required libraries to andami plugin directory">
70
                    <copy todir="${dist}">
71
                            <fileset dir="./lib" includes="*.jar"/>
72
                    </copy>
73

    
74

    
75
                    <move todir="${extensionsDir}/com.iver.cit.gvsig/lib/">
76
                            <fileset dir="${dist}" includes="**/**"/>
77
                    </move>
78
                </target>
79

    
80

    
81

    
82

    
83

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

    
91
        <target name="run-tests" depends="batch-build">
92
                <!--
93
                <antcall target="generic-run-tests">
94
                        <param name="TestSuite.Name" value="org.cresques.cts.AllTests"/>
95
                </antcall>
96
                -->
97
        </target>
98
</project>
99