Statistics
| Revision:

svn-gvsig-desktop / tags / v1_2_Build_1209 / libraries / libJCRS / build.xml @ 18439

History | View | Annotate | Download (2.93 KB)

1 12872 cesar
<project name="libJCRS" default="generate-without-source" basedir=".">
2 7581 dguerrero
    <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 13430 cesar
  <property name="src-test" location="src-test"/>
8 7581 dguerrero
  <property name="build" location="bin"/>
9 13502 cesar
  <property name="build-test" location="bin-test"/>
10 13236 jmvivo
  <property name="lib" location="lib" />
11 7581 dguerrero
  <property name="dist"  location="dist"/>
12 7705 dguerrero
  <property name="plugin" value="jcrs"/>
13 13236 jmvivo
  <property name="andami" location="../_fwAndami"/>
14
  <property name="andamiLibs" location="${andami}/lib"/>
15
  <property name="extension-dir" location="${andami}/gvSIG/extensiones"/>
16 13257 jmvivo
  <property name="targetDir" location="../extJCRS/lib" />
17 13236 jmvivo
        <import file="../binaries/ant/utilities.xml"/>
18 7183 jlgomez
19 12872 cesar
20 7581 dguerrero
  <target name="init">
21
    <!-- Create the time stamp -->
22
    <tstamp/>
23 12872 cesar
          <echo>
24
                          Compiling ${ant.project.name}...</echo>
25 7581 dguerrero
    <!-- Create the build directory structure used by compile -->
26
    <mkdir dir="${build}"/>
27
    <mkdir dir="${dist}"/>
28 13213 jmvivo
29 7581 dguerrero
  </target>
30 7183 jlgomez
31 7581 dguerrero
  <target name="compile"
32
          description="compile the source" >
33
      <!-- Compile the Java code from ${src} to ${bin} -->
34 13213 jmvivo
                  <loadEclipseClasspath project="${basedir}"/>
35 13296 jmvivo
                <gvSIG-javac
36 13213 jmvivo
                        classpath="${eclipseClasspath}"
37
                />
38
39
     <!-- <javac      srcdir="${src}"
40 7581 dguerrero
                  destdir="${build}"
41 12872 cesar
                  source="${JavaSourceVersion}"
42
                        target="${JavaTargetVersion}"
43
                  debug="${debug}"
44
                  debuglevel="${debuglevel}"
45
                        encoding="${encoding}"
46 13213 jmvivo
                                     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 7581 dguerrero
    </target>
48 13213 jmvivo
49 7581 dguerrero
  <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 13213 jmvivo
56 8627 dguerrero
          <!-- 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 8103 dguerrero
          <!-- <copy file="${dist}/${plugin}.jar" todir="../extJCRS/lib/"/> -->
62 7581 dguerrero
  </target>
63 13213 jmvivo
64 12872 cesar
        <target name="batch-build"
65
                        description="compile the sources, create the jar file"
66 13257 jmvivo
                        depends="init,compile,generate-without-source">
67 12872 cesar
        </target>
68 13257 jmvivo
69 12872 cesar
        <target name="clean"
70
                    description="cleans the build directories">
71
                <delete dir="${build}"/>
72 16524 jmvivo
                <delete>
73
                        <fileset dir="${dist}" includes="**/**"/>
74
                </delete>
75 12872 cesar
        </target>
76 16524 jmvivo
77 13430 cesar
        <target name="run-tests" depends="batch-build,compile-tests">
78
                <antcall target="generic-run-tests">
79 13431 cesar
                        <param name="TestSuite.Name" value="org.gvsig.crs.AllTests"/>
80 13430 cesar
                </antcall>
81
        </target>
82 7581 dguerrero
</project>
83