Statistics
| Revision:

svn-gvsig-desktop / tags / v1_11_0_Build_1300 / libraries / libCresques / build.xml @ 44114

History | View | Annotate | Download (2.09 KB)

1 13128 bsanchez
<project name="libCresques" default="dist" basedir=".">
2
                <description>
3
                                Genera el jar con libCresques 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="libcresques.jar"/>
11 13264 bsanchez
        <property name="targetDir" location="../libRaster/lib"/>
12 13128 bsanchez
        <property name="cresques.home" value="${build}/org/cresques" />
13
        <property name="JavaSourceVersion" value="1.4"/>
14
        <property name="JavaTargetVersion" value="1.4"/>
15
        <property name="encoding" value="ISO_8859_1"/>
16
17
        <target name="init">
18
                <tstamp/>
19
        <echo>
20
                Compiling ${ant.project.name}...
21
        </echo>
22
        </target>
23
24 13264 bsanchez
        <target name="dist" depends="init, create-jar, move-to-raster"
25 13128 bsanchez
                                description="generate the distribution" >
26
        </target>
27
28
        <target name="batch-build"
29
                        description="compile the sources, create the jar file"
30 13264 bsanchez
                        depends="compile,create-jar,move-to-raster">
31 13128 bsanchez
        </target>
32
33
        <target name="compile" description="compile the source" >
34
                <!-- Compile the Java code from ${src} to ${build} -->
35
                <mkdir dir="${build}" />
36
                <javac         srcdir="${src}"
37
                                destdir="${build}"
38
                                source="${JavaSourceVersion}"
39
                                target="${JavaTargetVersion}"
40
                                debug="${debug}"
41
                                debuglevel="${debuglevel}"
42
                                classpath="${compile-classpath}"
43
                                encoding="${encoding}"/>
44
        </target>
45
46
        <target name="create-jar" description="Crea el jar de la aplicacion">
47
                <mkdir dir="${dist}"/>
48
                        <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
49
                        <jar jarfile="${dist}/${jarName}" basedir="." includes = "images/*" update="true" />
50
        </target>
51
52 13264 bsanchez
        <target name="move-to-raster" description="Move jars and required libraries to raster">
53 13128 bsanchez
                        <copy todir="${dist}">
54
                                <fileset dir="./lib" includes="*.jar"/>
55
                        </copy>
56
                        <move todir="${targetDir}/">
57
                                <fileset dir="${dist}" includes="**/**"/>
58
                        </move>
59
        </target>
60
61
        <target name="clean"
62
                        description="clean up" >
63
                <!-- Delete the ${build} and ${dist} directory trees -->
64
                <delete dir="${build}"/>
65
                <delete dir="${dist}"/>
66
        </target>
67
</project>