Statistics
| Revision:

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

History | View | Annotate | Download (1.77 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
        
13
        <target name="init">
14
                <!-- Create the time stamp -->
15
                <tstamp />
16
                <echo>
17
                        Compiling ${ant.project.name}...</echo>
18
        </target>
19

    
20
    <target name="batch-build"
21
                description="compile the sources, create the jar file"
22
                depends="init,compile,create-jar,move-to-fmap">
23
    </target>
24
        
25
        <target name="dist"
26
                        description="create the jar file, copy it to libFMap"
27
                        depends="init,create-jar,move-to-fmap">
28
        </target>
29
    <target name="compile" description="compile the source" >
30
        <!-- Compile the Java code from ${src} to ${build} -->
31
            <mkdir dir="${build}" />
32
        <javac        srcdir="${src}"
33
                                destdir="${build}"
34
                                source="1.4"
35
                                target="1.4"
36
                                debug="${debug}"
37
                                debuglevel="${debuglevel}"
38
                                classpath="${compile-classpath}"/>
39
        </target>        
40
        
41
        <target name="create-jar" description="Crea el jar de la aplicacion">
42
                <mkdir dir="${dist}"/>
43
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/>
44
        </target>
45
        
46
        <target name="move-to-fmap" description="Move the jar file to the libFMap lib-dir">
47
                <move file="${dist}/${jarName}.jar" todir="${targetDir}"/>
48
        </target>
49
                
50
        <target name="clean" description="clean up" >
51
                <!-- Delete the ${build} and ${dist} directory trees -->
52
                <delete dir="${build}"/>
53
                <delete dir="${dist}"/>
54
                <delete file="${jarName}.jar" />
55
        </target>
56
</project>