Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libDriverManager / build.xml @ 13296

History | View | Annotate | Download (1.92 KB)

1
<project name="Driver Manager" default="dist" basedir=".">
2
        <description>
3
        Instala el plugin
4
    </description>
5
        <!-- set global properties for this build
6
        <property name="drivers-dir" location="../Andami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" />-->
7
        <property name="src" value="src"/>
8
        <property name="build" value="bin"/>
9
        <property name="dist" location="dist"/>
10
        <property name="jarName" value="driver-manager-1.1"/>
11
        <property name="targetDir" value="../libFMap/lib"/>
12
        <import file="../binaries/ant/utilities.xml"/>
13

    
14
        <target name="init">
15
                <!-- Create the time stamp -->
16
                <tstamp />
17
                <echo>
18
                        Compiling ${ant.project.name}...</echo>
19
        </target>
20

    
21
    <target name="batch-build"
22
                description="compile the sources, create the jar file"
23
                depends="init,compile,create-jar,move-to-fmap">
24
    </target>
25

    
26
        <target name="dist"
27
                        description="create the jar file, copy it to libFMap"
28
                        depends="init,create-jar,move-to-fmap">
29
        </target>
30
    <target name="compile" description="compile the source" >
31
        <!-- Compile the Java code from ${src} to ${build} -->
32
            <mkdir dir="${build}" />
33
                <loadEclipseClasspath project="${basedir}"/>
34
                <gvSIG-javac
35
                        classpath="${eclipseClasspath}"
36
                />
37
        <!-- <javac        srcdir="${src}"
38
                                destdir="${build}"
39
                                source="1.4"
40
                                target="1.4"
41
                                debug="${debug}"
42
                                debuglevel="${debuglevel}"
43
                                classpath="${compile-classpath}"/>-->
44
        </target>
45

    
46
        <target name="create-jar" description="Crea el jar de la aplicacion">
47
                <mkdir dir="${dist}"/>
48
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/>
49
        </target>
50

    
51
        <target name="move-to-fmap" description="Move the jar file to the libFMap lib-dir">
52
                <move file="${dist}/${jarName}.jar" todir="${targetDir}"/>
53
        </target>
54

    
55
        <target name="clean" description="clean up" >
56
                <!-- Delete the ${build} and ${dist} directory trees -->
57
                <delete dir="${build}"/>
58
                <delete dir="${dist}"/>
59
                <delete file="${jarName}.jar" />
60
        </target>
61
</project>