Statistics
| Revision:

root / trunk / libraries / libJCRS / build.xml @ 13502

History | View | Annotate | Download (2.89 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="andami" location="../_fwAndami"/>
14
  <property name="andamiLibs" location="${andami}/lib"/>
15
  <property name="extension-dir" location="${andami}/gvSIG/extensiones"/>
16
  <property name="targetDir" location="../extJCRS/lib" />
17
        <import file="../binaries/ant/utilities.xml"/>
18

    
19

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

    
29
  </target>
30

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

    
39
     <!-- <javac      srcdir="${src}"
40
                  destdir="${build}"
41
                  source="${JavaSourceVersion}"
42
                        target="${JavaTargetVersion}"
43
                  debug="${debug}"
44
                  debuglevel="${debuglevel}"
45
                        encoding="${encoding}"
46
                                     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"/>-->
47
    </target>
48

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

    
53
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
54
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
55

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

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

    
69
        <target name="clean"
70
                    description="cleans the build directories">
71
                <delete dir="${build}"/>
72
                <delete dir="${dist}"/>
73
        </target>
74
        
75
        <target name="run-tests" depends="batch-build,compile-tests">
76
                <antcall target="generic-run-tests">
77
                        <param name="TestSuite.Name" value="org.gvsig.crs.AllTests"/>
78
                </antcall>
79
        </target>
80
</project>
81

    
82