Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libProjection / build.xml @ 24261

History | View | Annotate | Download (2.82 KB)

1
<project name="libProjection" default="dist" basedir=".">
2
    <description>
3
        Genera el jar con libProjection 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.cresques.cts.jar"/>
13
        <property name="targetDir" location="../libFMap/lib"/>
14
        <property name="cresques.home" value="${build}/org/cresques" />
15
        <property name="i18n" location="../libInternationalization"/>
16
        <property name="i18nLibs" location="${i18n}/lib"/>
17
        <!--<property name="compile-classpath" value="${lib}/geoapi-2.0.jar:${lib}/geojava.jar:${lib}/gt2-legacy.jar:${lib}/gt2-main.jar:${i18nLibs}/gvsig-i18n.jar" />-->
18
        <import file="../binaries/ant/utilities.xml"/>
19

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

    
27
  <target name="dist" depends="init, create-jar, move-to-fmap"
28
        description="generate the distribution" >
29
  </target>
30

    
31
        <target name="batch-build"
32
                        description="compile the sources, create the jar file"
33
                        depends="compile,create-jar,move-to-fmap">
34
        </target>
35

    
36
        <target name="compile" description="compile the source" >
37
                <!-- Compile the Java code from ${src} to ${build} -->
38
                <mkdir dir="${build}" />
39
                <loadEclipseClasspath project="${basedir}"/>
40
                <gvSIG-javac
41
                        classpath="${eclipseClasspath}"
42
                />
43
                <!--<javac         srcdir="${src}"
44
                                destdir="${build}"
45
                                source="${JavaSourceVersion}"
46
                                target="${JavaTargetVersion}"
47
                                debug="${debug}"
48
                                debuglevel="${debuglevel}"
49
                                classpath="${compile-classpath}"
50
                                encoding="${encoding}"/>-->
51
            <copy todir="${cresques.home}/i18n/resources/translations">
52
                    <fileset dir="config" includes="*" />
53
            </copy>
54
        </target>
55

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

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

    
71
        <target name="clean"
72
                        description="clean up" >
73
                <!-- Delete the ${build} and ${dist} directory trees -->
74
                <delete dir="${build}"/>
75
                <delete dir="${dist}"/>
76
        </target>
77
        
78
        <target name="run-tests" depends="batch-build,compile-tests">
79
                <antcall target="generic-run-tests">
80
                        <param name="TestSuite.Name" value="org.cresques.cts.AllTests"/>
81
                </antcall>
82
        </target>
83

    
84
</project>
85