Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libJCRS / build.xml @ 28835

History | View | Annotate | Download (3.16 KB)

1
<project name="libJCRS" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin de JCrs 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="lib" location="lib" />
11
  <property name="dist"  location="dist"/>
12
  <property name="plugin" value="jcrs"/>
13
  <property name="geotools" value="jcrs-geotools"/>
14
  <property name="andami" location="../_fwAndami"/>
15
  <property name="andamiLibs" location="${andami}/lib"/>
16
  <property name="extension-dir" location="${andami}/gvSIG/extensiones"/>
17
  <property name="targetDir" location="../libFMap/lib" />
18
        <import file="../binaries/ant/utilities.xml"/>
19

    
20

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

    
30
  </target>
31

    
32
  <target name="compile"
33
          description="compile the source" >
34
      <!-- Compile the Java code from ${src} to ${bin} -->
35
                  <loadEclipseClasspath project="${basedir}"/>
36
                <gvSIG-javac
37
                        classpath="${eclipseClasspath}"
38
                />
39

    
40
     <!-- <javac      srcdir="${src}"
41
                  destdir="${build}"
42
                  source="${JavaSourceVersion}"
43
                        target="${JavaTargetVersion}"
44
                  debug="${debug}"
45
                  debuglevel="${debuglevel}"
46
                        encoding="${encoding}"
47
                                     classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/>-->
48
    </target>
49

    
50
  <target name="generate-without-source" description="generate the distribution without the source file" >
51
    <!-- Create the distribution directory -->
52
    <mkdir dir="${dist}"/>
53

    
54
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
55
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="org/gvsig/ es/idr/"/>
56
           <jar jarfile="${dist}/${geotools}.jar" basedir="${build}" includes="org/geotools/ META-INF/"/>
57

    
58
          <!-- copy file="${dist}/${plugin}.jar" todir="lib/"/> -->
59
          <copy file="${dist}/${plugin}.jar" todir="${targetDir}"/>
60
          <copy file="${dist}/${geotools}.jar" todir="${targetDir}"/>
61
          <copy todir="${targetDir}">
62
                                  <fileset dir="./lib" includes="*.jar" />
63
        </copy>
64
          <!-- <copy file="${dist}/${plugin}.jar" todir="../extJCRS/lib/"/> -->
65
  </target>
66

    
67
        <target name="batch-build"
68
                        description="compile the sources, create the jar file"
69
                        depends="init,compile,generate-without-source">
70
        </target>
71

    
72
        <target name="clean"
73
                    description="cleans the build directories">
74
                <delete dir="${build}"/>
75
                <delete>
76
                        <fileset dir="${dist}" includes="**/**"/>
77
                </delete>
78
        </target>
79

    
80
        <target name="run-tests" depends="batch-build,compile-tests">
81
                <antcall target="generic-run-tests">
82
                        <param name="TestSuite.Name" value="org.gvsig.crs.AllTests"/>
83
                </antcall>
84
        </target>
85
</project>
86

    
87