Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libIverUtiles / build.xml @ 13236

History | View | Annotate | Download (2.3 KB)

1
<project name="IverUtiles" 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="../_fwAndami/lib"/>
7
        <property name="jarName" value="iver-utiles"/>
8
        <property name="andamiLibs" location="../_fwAndami/lib" />
9
        <property name="fmapLibs" location="../libFMap" />
10
        <property name="JavaSourceVersion" value="1.5"/>
11
        <property name="JavaTargetVersion" value="1.5"/>
12
        <property name="encoding" value="ISO_8859_1"/>
13
        <property name="debug" value="on"/>
14
        <property name="debuglevel" value="lines, vars"/>
15
        <import file="../binaries/ant/utilities.xml"/>
16
        <!--<property name="compile-classpath" value="${andamiLibs}/castor-0.9.5.3-xml.jar:${andamiLibs}/commons-collections-3.1.zip:${andamiLibs}/commons-dbcp-1.0-dev-20020806.zip:${andamiLibs}/commons-pool-1.2.zip:${fmapLibs}/mysql-connector-java-3.1.7-bin.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar" />-->
17

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

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

    
30
        <target name="compile" description="compile the source">
31
                <!-- Compile the Java code from ${src} to ${build} -->
32
                <mkdir dir="${build}" />
33
                <loadEclipseClasspath project="${basedir}"/>
34
                <defaultJavac
35
                        classpath="${eclipseClasspath}"
36
                />
37
                <!--<javac        srcdir="${src}"
38
                                destdir="${build}"
39
                                source="${JavaSourceVersion}"
40
                                target="${JavaTargetVersion}"
41
                                debug="${debug}"
42
                                debuglevel="${debuglevel}"
43
                                classpath="${compile-classpath}"/>-->
44
                <!-- copy any images or resources present in the src dir -->
45
                <copy todir="${build}">
46
                        <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/>
47
                </copy>
48
        </target>
49

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

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

    
61
</project>