Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / extensions / extSextanteGvsigBindings / build.xml @ 29018

History | View | Annotate | Download (3.55 KB)

1 26350 nbrodin
<project name="" default="generate-without-source" basedir=".">
2
    <description>
3
    </description>
4
5
        <import file="../binaries/ant/utilities.xml"/>
6
  <!-- set global properties for this build -->
7
  <property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/>
8
  <property name="gvSIG-lib-dir" location="${extensions-dir}/com.iver.cit.gvsig/lib"/>
9
  <property name="src" location="src"/>
10
  <property name="bin" location="bin"/>
11
  <property name="doc"  location="doc"/>
12
  <property name="dist"  location="dist-tmp"/>
13
  <property name="build" location="bin"/>
14
  <property name="without_src"  location="without_src"/>
15
  <property name="plugin" value="es.unex.sextante"/>
16
  <property name="andami"  location="../_fwAndami/lib"/>
17
  <property name="fmap"  location="../libFMap/lib"/>
18
19
  <target name="init">
20
        <mkdir dir="${bin}"/>
21
        <mkdir dir="${dist}" />
22
  </target>
23
24
  <target name="generate-without-source"
25
                          description="generate the distribution without the source file"
26
                  depends="init,create-jar,copy-data-files,copy-to-andami,clean-dist">
27
28
  </target>
29
30
  <target name="create-jar">
31
          <jar jarfile="${dist}/${plugin}.jar" basedir="${bin}"/>
32
  </target>
33
34
  <target name="fix-jama">
35
          <echo> ARREGLAR JAMA!!!!!</echo>
36
37
  </target>
38
39
  <target name="copy-data-files">
40
    <copy todir="${dist}">
41
            <fileset dir="config/" includes="*"/>
42
    </copy>
43
    <copy todir="${dist}/images">
44
            <fileset dir="images" includes="**"/>
45
    </copy>
46
          <!-- OJO -->
47
          <copy todir="${dist}" overwrite="true">
48
             <fileset dir="./sextante" includes="**" />
49
    </copy>
50
51
52
  </target>
53
54
  <target name="copy-to-andami">
55
    <copy todir="${extensions-dir}/${plugin}/">
56
            <fileset dir="${dist}" includes="**/**"/>
57
    </copy>
58
          <!--<copy todir="${gvSIG-lib-dir}" overwrite="true">
59
             <fileset dir="./sextante" includes="**" />
60
    </copy>-->
61
62
  </target>
63
64
  <target name="clean-dist">
65
        <delete dir="${dist}"></delete>
66
  </target>
67
68
  <target name="clean" description="clean up" >
69
    <!-- Delete the ${build} and ${dist} directory trees -->
70
        <delete dir="${dist}"/>
71
        <delete dir="${build}"/>
72
  </target>
73
74
75
        <target name="batch-build"
76
                        description="compile the sources, create the jar file"
77
                        depends="init,compile,create-jar,copy-data-files,copy-to-andami">
78
        </target>
79
80
        <target name="compile" description="compile the source" >
81
                <antcall target="gvSIG-import-build-number"/>
82
                <!-- Compile the Java code from ${src} to ${build} -->
83
                <mkdir dir="${build}" />
84
                <loadEclipseClasspath project="${basedir}"/>
85
                <gvSIG-javac
86
                        classpath="${eclipseClasspath}"
87
                />
88
        </target>
89
90
        <target name="run-tests" depends="batch-build,compile-tests">
91
                <antcall target="generic-run-tests">
92
                        <param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/>
93
                </antcall>
94
        </target>
95
96
        <!-- lo que habia antes -->
97
  <target name="generate-without-source-old"
98
          description="generate the distribution without the source file">
99
    <!-- Create the distribution directory -->
100
    <mkdir dir="${without_src}"/>
101
102
    <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
103
104
    <copy todir="${without_src}">
105
            <fileset dir="config/" includes="*"/>
106
    </copy>
107
    <copy todir="${without_src}/images">
108
            <fileset dir="images" includes="**"/>
109
    </copy>
110
    <move todir="${extensions-dir}/${plugin}/">
111
            <fileset dir="${without_src}" includes="**/**"/>
112
    </move>
113
          <copy todir="${gvSIG-lib-dir}" overwrite="true">
114
             <fileset dir="./sextante" includes="**" />
115
    </copy>
116
  </target>
117
118
</project>