Statistics
| Revision:

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

History | View | Annotate | Download (1.79 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="dist"  location="dist"/>
6
        <property name="targetDir" location="dist"/>
7
        <property name="fmapLibs" location="../libFMap/lib" />
8
        <property name="remoteServicesLibs" location="../libRemoteServices/lib" />
9
        <property name="jarName" value="gvsig-exceptions"/>
10
        <property name="compile-classpath" value="" />
11

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

    
19
        <target name="batch-build"
20
                                description="compile the sources, create the jar file"
21
                                depends="init,compile,create-jar">
22
        </target>
23

    
24
        <target name="compile" description="compile the source">
25
                <!-- Compile the Java code from ${src} to ${build} -->
26
                <mkdir dir="${build}" />
27
                <javac        srcdir="${src}"
28
                                destdir="${build}"
29
                                source="1.4"
30
                                target="1.4"
31
                                debug="${debug}"
32
                                debuglevel="${debuglevel}"
33
                                classpath="${compile-classpath}"/>
34
                <!-- copy any images or resources present in the src dir -->
35
                <copy todir="${build}">
36
                        <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/>
37
                </copy>
38
        </target>
39

    
40
        <target name="create-jar" description="Crea el jar de la aplicacion">
41
                <mkdir dir="${dist}" />
42
                  <jar jarfile="${targetDir}/${jarName}.jar" basedir="${build}"/>
43
                <copy todir="${fmapLibs}">
44
                        <fileset dir="${targetDir}" includes="*.jar" />
45
                </copy>
46
                <copy todir="${remoteServicesLibs}">
47
                        <fileset dir="${targetDir}" includes="*.jar" />
48
                </copy>
49
        </target>
50

    
51
        <target name="clean" description="clean up">
52
                <!-- Delete the ${build} and ${dist} directory trees -->
53
                <delete dir="${build}" />
54
                <delete dir="${dist}" />
55
        </target>
56
  
57
</project>