Statistics
| Revision:

svn-gvsig-desktop / tags / v1_9_Build_1247 / libraries / libRaster / build.xml @ 39111

History | View | Annotate | Download (4.08 KB)

1
<project name="Parte raster de FMap" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin en Andami
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="src-test" location="src-test"/>
8
  <property name="build" location="bin"/>
9
  <property name="build-test" location="bin-test"/>
10
  <property name="dist"  location="dist"/>
11
  <property name="lib" location="lib" />
12
  <property name="mainplugin" value="com.iver.cit.gvsig"/>
13
  <property name="andami" location="../_fwAndami"/>
14
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
15
  <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" />
16
  <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/>
17
        <property name="jarName" location="org.gvsig.raster" />
18
        <property name="andamiLibs" location="${andami}/lib" />
19
        <property name="andamiJar" location="${andami}/andami.jar"/>
20
        <property name="fmapLibs" location="../libFMap/lib" />
21
        <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/>
22
        <!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/gt2-wms.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/kxml2.jar:${fmapLibs}/libproj.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${andamiLibs}/tempFileManager.jar" />-->
23
        <import file="../binaries/ant/utilities.xml"/>
24

    
25
  <target name="init">
26
    <!-- Create the time stamp -->
27
   <!-- <tstamp/> -->
28
        <echo>
29
                Compiling ${ant.project.name}...</echo>
30
    <!-- Create the build directory structure used by compile -->
31
<!--    <mkdir dir="${build}"/>
32
    <mkdir dir="${dist}"/> -->
33

    
34
  </target>
35

    
36
  <target name="generate-without-source"
37
                  description="generate the distribution without the source file">
38
    <!-- Create the distribution directory -->
39
    <mkdir dir="${dist}"/>
40

    
41
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
42
    <jar jarfile="${jarName}.jar" basedir="${build}" includes="org/gvsig/raster/**"/>
43

    
44
          <copy file="${jarName}.jar" todir="${lib-dir}"/>
45
          <copy file="${jarName}.jar" todir="${fmapLibs}"/>
46

    
47
          <copy todir="${lib-dir}">
48
            <fileset dir="./lib" includes="*.jar"/>
49
            <fileset dir="." includes=".keystore"/>
50
    </copy>
51
          <copy todir="${fmapLibs}/">
52
                  <fileset dir="." includes="${jarName}.jar"/>
53
    </copy>
54

    
55
  </target>
56

    
57
  <target name="clean" description="clean up" >
58
                <delete dir="${dist}"/>
59
                <delete dir="${build}"/>
60
  </target>
61

    
62
        <target name="batch-build"
63
                        description="compile the sources, create the jar file"
64
                        depends="init,compile,create-jar,copy-libs">
65
        </target>
66

    
67
        <target name="compile" description="compile the source" >
68
                <!-- Compile the Java code from ${src} to ${build} -->
69
                <mkdir dir="${build}" />
70
                <loadEclipseClasspath project="${basedir}"/>
71
                <gvSIG-javac
72
                        classpath="${eclipseClasspath}"
73
                        excludes="test/**"/>
74
                <!--<javac  srcdir="${src}"
75
                                destdir="${build}"
76
                                classpath="${compile-classpath}"
77
                                   source="${JavaSourceVersion}"
78
                                target="${JavaTargetVersion}"
79
                                debug="${debug}"
80
                                debuglevel="${debuglevel}"
81
                                excludes="test/**"
82
                                encoding="${encoding}"/>-->
83
        </target>
84

    
85
        <target name="create-jar"
86
                        description="Creates the plugin jar">
87
                <mkdir dir="${dist}"/>
88
                <jar jarfile="${jarName}.jar" basedir="${build}" includes="org/gvsig/raster/**"/>
89
        </target>
90

    
91

    
92
        <target name="copy-libs">
93
                  <copy file="${jarName}.jar" todir="${lib-dir}"/>
94
                  <copy file="${jarName}.jar" todir="${fmapLibs}"/>
95

    
96
                  <copy todir="${lib-dir}">
97
                    <fileset dir="./lib" includes="*.jar"/>
98
                    <fileset dir="." includes=".keystore"/>
99
            </copy>
100
                  <copy todir="${fmapLibs}/">
101
                          <fileset dir="." includes="${jarName}.jar"/>
102
            </copy>
103
        </target>
104
        
105
        <target name="run-tests" depends="batch-build,compile-tests">
106
                <antcall target="generic-run-tests">
107
                        <param name="TestSuite.Name" value="org.gvsig.raster.AllTests"/>
108
                </antcall>
109
        </target>
110

    
111
</project>
112