Statistics
| Revision:

svn-gvsig-desktop / tags / v1_11_0_Build_1306 / extensions / extSextanteGvsigBindings / build.xml @ 41849

History | View | Annotate | Download (4.28 KB)

1 24475 nbrodin
<project name="" default="generate-without-source" basedir=".">
2
    <description>
3
    </description>
4 24970 jmvivo
5
        <import file="../binaries/ant/utilities.xml"/>
6 24475 nbrodin
  <!-- 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 24971 jmvivo
  <property name="dist"  location="dist-tmp"/>
13 24475 nbrodin
  <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 24970 jmvivo
  <target name="init">
20
        <mkdir dir="${bin}"/>
21
        <mkdir dir="${dist}" />
22
  </target>
23
24 24475 nbrodin
  <target name="generate-without-source"
25 24970 jmvivo
                          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 34510 fdiaz
  <target name="copy-data-files" depends="make-package-info">
40 24970 jmvivo
    <copy todir="${dist}">
41
            <fileset dir="config/" includes="*"/>
42
    </copy>
43 29409 yhijazi
          <copy file="config/about.htm" todir="${dist}"/>
44
          <copy file="build.number" todir="${dist}"/>
45
                            <loadproperties srcFile="build.number"/>
46
                            <replace casesensitive="true"
47
                                      file="${dist}/about.htm"
48
                                      token="#build.number#"
49
                                      value="${build.number}"/>
50 34510 fdiaz
        <copy file="package.info" todir="${dist}"/>
51 29409 yhijazi
52 24970 jmvivo
    <copy todir="${dist}/images">
53
            <fileset dir="images" includes="**"/>
54
    </copy>
55
          <!-- OJO -->
56
          <copy todir="${dist}" overwrite="true">
57
             <fileset dir="./sextante" includes="**" />
58
    </copy>
59
60
61
  </target>
62
63
  <target name="copy-to-andami">
64
    <copy todir="${extensions-dir}/${plugin}/">
65
            <fileset dir="${dist}" includes="**/**"/>
66
    </copy>
67
          <!--<copy todir="${gvSIG-lib-dir}" overwrite="true">
68
             <fileset dir="./sextante" includes="**" />
69
    </copy>-->
70
71
  </target>
72
73
  <target name="clean-dist">
74
        <delete dir="${dist}"></delete>
75
  </target>
76
77
  <target name="clean" description="clean up" >
78
    <!-- Delete the ${build} and ${dist} directory trees -->
79
        <delete dir="${dist}"/>
80
        <delete dir="${build}"/>
81
  </target>
82
83
84
        <target name="batch-build"
85
                        description="compile the sources, create the jar file"
86
                        depends="init,compile,create-jar,copy-data-files,copy-to-andami">
87
        </target>
88
89
        <target name="compile" description="compile the source" >
90 29409 yhijazi
                <!-- <antcall target="gvSIG-import-build-number"/> -->
91 24970 jmvivo
                <!-- Compile the Java code from ${src} to ${build} -->
92
                <mkdir dir="${build}" />
93
                <loadEclipseClasspath project="${basedir}"/>
94
                <gvSIG-javac
95
                        classpath="${eclipseClasspath}"
96
                />
97
        </target>
98
99
        <target name="run-tests" depends="batch-build,compile-tests">
100
                <antcall target="generic-run-tests">
101
                        <param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/>
102
                </antcall>
103
        </target>
104
105
        <!-- lo que habia antes -->
106
  <target name="generate-without-source-old"
107 24475 nbrodin
          description="generate the distribution without the source file">
108
    <!-- Create the distribution directory -->
109
    <mkdir dir="${without_src}"/>
110
111
    <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
112
113
    <copy todir="${without_src}">
114
            <fileset dir="config/" includes="*"/>
115
    </copy>
116
    <copy todir="${without_src}/images">
117
            <fileset dir="images" includes="**"/>
118
    </copy>
119
    <move todir="${extensions-dir}/${plugin}/">
120
            <fileset dir="${without_src}" includes="**/**"/>
121
    </move>
122 24489 nbrodin
          <copy todir="${gvSIG-lib-dir}" overwrite="true">
123
             <fileset dir="./sextante" includes="**" />
124 24475 nbrodin
    </copy>
125
  </target>
126
127 29409 yhijazi
  <target name="buildNumber">
128
    <propertyfile     file="build.number"
129
        comment="Build Number for ANT. Do not edit!">
130 31435 yhijazi
      <entry key="build.number" default="0" type="int" operation="+" pattern="0"/>
131 29409 yhijazi
    </propertyfile>
132
    <property file="build.number" />
133
  </target>
134
135
  <target name="distribution"
136
         depends="buildNumber,generate-without-source"/>
137
138 24475 nbrodin
</project>