Statistics
| Revision:

root / trunk / libraries / libExceptions / build.xml @ 13136

History | View | Annotate | Download (2.14 KB)

1 9777 cesar
<project name="libExceptions" default="create-jar" basedir=".">
2 9659 fdiaz
          <!-- 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 9743 jorpiell
        <property name="fmapLibs" location="../libFMap/lib" />
8 9770 jorpiell
        <property name="remoteServicesLibs" location="../libRemoteServices/lib" />
9 9659 fdiaz
        <property name="jarName" value="gvsig-exceptions"/>
10 13126 jmvivo
        <!--<property name="compile-classpath" value="" />-->
11
        <property name="JavaSourceVersion" value="1.5"/>
12
        <property name="JavaTargetVersion" value="1.5"/>
13
        <property name="encoding" value="ISO_8859_1"/>
14
        <property name="debug" value="on"/>
15
        <property name="debuglevel" value="lines, vars"/>
16
        <import file="../binaries/ant/utils.xml"/>
17 9659 fdiaz
18
  <target name="init">
19
    <!-- Create the time stamp -->
20
    <tstamp/>
21 9777 cesar
        <echo>
22
                Compiling ${ant.project.name}...</echo>
23 9659 fdiaz
  </target>
24
25
        <target name="batch-build"
26
                                description="compile the sources, create the jar file"
27 9778 cesar
                                depends="init,compile,create-jar">
28 9659 fdiaz
        </target>
29
30
        <target name="compile" description="compile the source">
31
                <!-- Compile the Java code from ${src} to ${build} -->
32
                <mkdir dir="${build}" />
33 13126 jmvivo
                <loadEclipseClasspath project="${basedir}"/>
34
                <defaultJavac/>
35
36
                <!--<javac        srcdir="${src}"
37 9659 fdiaz
                                destdir="${build}"
38
                                source="1.4"
39
                                target="1.4"
40
                                debug="${debug}"
41
                                debuglevel="${debuglevel}"
42 13126 jmvivo
                                classpath="${compile-classpath}"/>-->
43 9659 fdiaz
                <!-- 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 9743 jorpiell
                <copy todir="${fmapLibs}">
53
                        <fileset dir="${targetDir}" includes="*.jar" />
54
                </copy>
55 9770 jorpiell
                <copy todir="${remoteServicesLibs}">
56
                        <fileset dir="${targetDir}" includes="*.jar" />
57
                </copy>
58 9659 fdiaz
        </target>
59
60
        <target name="clean" description="clean up">
61
                <!-- Delete the ${build} and ${dist} directory trees -->
62
                <delete dir="${build}" />
63
                <delete dir="${dist}" />
64
        </target>
65 13126 jmvivo
66 9659 fdiaz
</project>