Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libExceptions / build.xml @ 21011

History | View | Annotate | Download (2.22 KB)

1
<project name="libExceptions" default="create-jar" basedir=".">
2
          <!-- set global properties for this build -->
3
        <property name="src"  location="src"/>
4
        <property name="build"  location="bin"/>
5
        <property name="src-test"  location="src-test"/>
6
        <property name="build-test"  location="bin-test"/>
7
        <property name="dist"  location="dist"/>
8
        <property name="targetDir" location="dist"/>
9
        <property name="fmapLibs" location="../libFMap/lib" />
10
        <property name="andamiLibs" location="../_fwAndami/lib" />
11
        <property name="remoteServicesLibs" location="../libRemoteServices/lib" />
12
        <property name="jarName" value="org.gvsig.exceptions"/>
13
        <!--<property name="compile-classpath" value="" />-->
14
        <import file="../binaries/ant/utilities.xml"/>
15

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

    
23
        <target name="batch-build"
24
                                description="compile the sources, create the jar file"
25
                                depends="init,compile,create-jar">
26
        </target>
27

    
28
        <target name="compile" description="compile the source">
29
                <!-- Compile the Java code from ${src} to ${build} -->
30
                <mkdir dir="${build}" />
31
                <loadEclipseClasspath project="${basedir}"/>
32
                <gvSIG-javac
33
                        classpath="${eclipseClasspath}"
34
                />
35

    
36
                <!--<javac        srcdir="${src}"
37
                                destdir="${build}"
38
                                source="1.4"
39
                                target="1.4"
40
                                debug="${debug}"
41
                                debuglevel="${debuglevel}"
42
                                classpath="${compile-classpath}"/>-->
43
                <!-- copy any images or resources present in the src dir -->
44
                <copy todir="${build}">
45
                        <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/>
46
                </copy>
47
        </target>
48

    
49
        <target name="create-jar" description="Crea el jar de la aplicacion">
50
                <mkdir dir="${dist}" />
51
                  <jar jarfile="${targetDir}/${jarName}.jar" basedir="${build}"/>
52
                <copy todir="${andamiLibs}">
53
                        <fileset dir="${targetDir}" includes="${jarName}.jar" />
54
                </copy>
55
        </target>
56

    
57
        <target name="clean" description="clean up">
58
                <!-- Delete the ${build} and ${dist} directory trees -->
59
                <delete dir="${build}" />
60
                <delete dir="${dist}" />
61
        </target>
62

    
63
        <target name="run-tests" depends="batch-build,compile-tests">
64
                <antcall target="generic-run-tests">
65
                        <param name="TestSuite.Name" value="org.gvsig.gui.beans.AllTests"/>
66
                </antcall>
67
        </target>
68

    
69
</project>