Statistics
| Revision:

svn-gvsig-desktop / tags / v1_2_Build_1203 / libraries / libTopology / build.xml @ 33839

History | View | Annotate | Download (2.79 KB)

1
<project name="libProjection" 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.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
        <import file="../binaries/ant/utilities.xml"/>
20

    
21
  <target name="init">
22
    <tstamp/>
23
        <echo>
24
                Compiling ${ant.project.name}...
25
        </echo>
26
  </target>
27

    
28
        <!--
29
  <target name="dist" depends="init, create-jar, move-to-fmap"
30
        description="generate the distribution" >
31
  </target>
32
  -->
33
         <target name="dist" depends="init, create-jar"
34
                description="generate the distribution" >
35
          </target>
36
        <!--
37
        <target name="batch-build"
38
                        description="compile the sources, create the jar file"
39
                        depends="compile,create-jar,move-to-fmap">
40
        </target>
41
        -->
42
        <target name="batch-build"
43
                                description="compile the sources, create the jar file"
44
                                depends="compile,create-jar">
45
        </target>
46

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

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

    
65
        <!--
66
        <target name="move-to-fmap" description="Move jars and required libraries to fmap">
67
            <copy todir="${dist}">
68
                    <fileset dir="./lib" includes="*.jar"/>
69
            </copy>
70
            <move todir="${targetDir}/">
71
                    <fileset dir="${dist}" includes="**/**"/>
72
            </move>
73
        </target>
74
-->
75
        
76
        
77
        <target name="clean"
78
                        description="clean up" >
79
                <!-- Delete the ${build} and ${dist} directory trees -->
80
                <delete dir="${build}"/>
81
                <delete dir="${dist}"/>
82
        </target>
83
        
84
        <target name="run-tests" depends="batch-build">
85
                <!--
86
                <antcall target="generic-run-tests">
87
                        <param name="TestSuite.Name" value="org.cresques.cts.AllTests"/>
88
                </antcall>
89
                -->
90
        </target>
91
</project>
92