Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libProjection / build.xml @ 13215

History | View | Annotate | Download (2.76 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="lib" location="lib"/>
8
        <property name="build" location="bin"/>
9
        <property name="dist"  location="dist"/>
10
        <property name="jarName" value="org.cresques.cts.jar"/>
11
        <property name="targetDir" location="../libFMap/lib"/>
12
        <property name="cresques.home" value="${build}/org/cresques" />
13
        <property name="i18n" location="../libInternationalization"/>
14
        <property name="i18nLibs" location="${i18n}/lib"/>
15
        <!--<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" />-->
16
        <property name="JavaSourceVersion" value="1.5"/>
17
        <property name="JavaTargetVersion" value="1.5"/>
18
        <property name="encoding" value="ISO_8859_1"/>
19
        <property name="debug" value="on"/>
20
        <property name="debuglevel" value="lines, vars"/>
21
        <import file="../binaries/ant/utils.xml"/>
22

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

    
30
  <target name="dist" depends="init, create-jar, move-to-fmap"
31
        description="generate the distribution" >
32
  </target>
33

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

    
39
        <target name="compile" description="compile the source" >
40
                <!-- Compile the Java code from ${src} to ${build} -->
41
                <mkdir dir="${build}" />
42
                <loadEclipseClasspath project="${basedir}"/>
43
                <defaultJavac
44
                        classpath="${eclipseClasspath}"
45
                />
46
                <!--<javac         srcdir="${src}"
47
                                destdir="${build}"
48
                                source="${JavaSourceVersion}"
49
                                target="${JavaTargetVersion}"
50
                                debug="${debug}"
51
                                debuglevel="${debuglevel}"
52
                                classpath="${compile-classpath}"
53
                                encoding="${encoding}"/>-->
54
            <copy todir="${cresques.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
        <target name="move-to-fmap" description="Move jars and required libraries to fmap">
66
            <copy todir="${dist}">
67
                    <fileset dir="./lib" includes="*.jar"/>
68
            </copy>
69
            <move todir="${targetDir}/">
70
                    <fileset dir="${dist}" includes="**/**"/>
71
            </move>
72
        </target>
73

    
74
        <target name="clean"
75
                        description="clean up" >
76
                <!-- Delete the ${build} and ${dist} directory trees -->
77
                <delete dir="${build}"/>
78
                <delete dir="${dist}"/>
79
        </target>
80
</project>
81