Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libDXF / build.xml @ 13342

History | View | Annotate | Download (2.08 KB)

1
<project name="libDXF" default="dist" basedir=".">
2
    <description>
3
        Genera el jar con libDXF
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.dxf.jar"/>
11
        <property name="targetDir" location="../libFMap/lib"/>
12
        <property name="cresques.home" value="${build}/org/cresques" />
13
        <import file="../binaries/ant/utilities.xml"/>
14

    
15
  <target name="init">
16
    <tstamp/>
17
        <echo>
18
                Compiling ${ant.project.name}...
19
        </echo>
20
  </target>
21

    
22
  <target name="dist" depends="init, create-jar, move-to-fmap"
23
        description="generate the distribution" >
24
  </target>
25

    
26
        <target name="batch-build"
27
                        description="compile the sources, create the jar file"
28
                        depends="compile,create-jar,move-to-fmap">
29
        </target>
30

    
31
        <target name="compile" description="compile the source" >
32
                <!-- Compile the Java code from ${src} to ${build} -->
33
                <mkdir dir="${build}" />
34
                <loadEclipseClasspath project="${basedir}"/>
35
                <gvSIG-javac
36
                        classpath="${eclipseClasspath}"
37
                />
38
                <!--<javac         srcdir="${src}"
39
                                destdir="${build}"
40
                                source="${JavaSourceVersion}"
41
                                target="${JavaTargetVersion}"
42
                                debug="${debug}"
43
                                debuglevel="${debuglevel}"
44
                                classpath="${compile-classpath}"
45
                                encoding="${encoding}"/>-->
46
        </target>
47

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

    
53
        <target name="move-to-fmap" description="Move jars and required libraries to fmap">
54
            <move todir="${targetDir}/">
55
                    <fileset dir="${dist}" includes="**/**"/>
56
            </move>
57
        </target>
58

    
59
        <target name="clean"
60
                        description="clean up" >
61
                <!-- Delete the ${build} and ${dist} directory trees -->
62
                <delete dir="${build}"/>
63
                <delete dir="${dist}"/>
64
        </target>
65
        
66
        <target name="run-tests">
67
                <antcall target="generic-run-tests">
68
                        <param name="TestSuite.Name" value="org.cresques.dxf.AllTests"/>
69
                </antcall>
70
        </target>
71
</project>
72