1 |
|
<!--REHACERLO PARA QUE SE COPIEN BIEN LAS LIBRERIAS-->
|
2 |
|
|
3 |
1 |
<project name="Geoprocessing" default="generate-without-source" basedir=".">
|
4 |
|
<description>
|
5 |
|
Instala el plugin de GeoProcessing en Andami.
|
6 |
|
</description>
|
7 |
|
<!-- set global properties for this build -->
|
8 |
|
<property name="src" location="src"/>
|
9 |
|
<property name="build" location="bin"/>
|
10 |
|
<property name="src-test" location="src-test"/>
|
11 |
|
<property name="build-test" location="bin-test"/>
|
12 |
|
<property name="doc" location="doc"/>
|
13 |
|
<property name="dist" location="dist"/>
|
14 |
|
<property name="without_src" location="without_src"/>
|
15 |
|
<property name="plugin" value="com.iver.cit.gvsig.geoprocess"/>
|
16 |
|
|
17 |
|
|
|
2 |
<!-- set global properties for this build -->
|
|
3 |
<property name="src" location="src"/>
|
|
4 |
<property name="build" location="bin"/>
|
|
5 |
<property name="doc" location="doc"/>
|
|
6 |
<property name="dist" location="dist"/>
|
|
7 |
<property name="without_src" location="without_src"/>
|
|
8 |
<property name="plugin" value="com.iver.cit.gvsig.geoprocess"/>
|
18 |
9 |
<property name="lib" value="lib"/>
|
19 |
|
<property name="andami" value="../_fwAndami"/>
|
20 |
10 |
<property name="jarName" value="${plugin}.jar"/>
|
21 |
|
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
|
22 |
|
<property name="andamiJar" location="${andami}/andami.jar"/>
|
23 |
|
<property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/>
|
24 |
|
<property name="andamiLibs" location="${andami}/lib"/>
|
25 |
|
<property name="fmapLibs" location="../libFMap/lib" />
|
26 |
|
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/>
|
27 |
|
<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib}/ehcache-1.2beta4.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${lib}/spatialindex.jar"/>-->
|
|
11 |
<property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/>
|
|
12 |
|
28 |
13 |
<import file="../binaries/ant/utilities.xml"/>
|
29 |
14 |
|
|
15 |
<target name="batch-build"
|
|
16 |
depends="init, compile, create-jar, copy-data-files, copy-libs, move-to-andami">
|
|
17 |
</target>
|
|
18 |
|
|
19 |
<target name="init">
|
|
20 |
<tstamp/>
|
|
21 |
<echo>Compiling ${ant.project.name}...</echo>
|
|
22 |
</target>
|
|
23 |
|
|
24 |
<target name="compile">
|
|
25 |
<antcall target="gvSIG-import-build-number"/>
|
|
26 |
<mkdir dir="${build}" />
|
|
27 |
<loadEclipseClasspath project="${basedir}"/>
|
|
28 |
<gvSIG-javac classpath="${eclipseClasspath}" />
|
|
29 |
<copy todir="${build}">
|
|
30 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/>
|
|
31 |
</copy>
|
|
32 |
</target>
|
30 |
33 |
|
31 |
|
<target name="init">
|
32 |
|
<!-- Create the time stamp -->
|
33 |
|
<tstamp/>
|
34 |
|
<echo>
|
35 |
|
Compiling ${ant.project.name}...</echo>
|
36 |
|
</target>
|
37 |
34 |
|
38 |
|
|
39 |
35 |
<target name="dist" depends="init"
|
40 |
36 |
description="generate the distribution" >
|
41 |
37 |
<!-- Remove previous distribution directory -->
|
... | ... | |
53 |
49 |
<mkdir dir="${dist}/images"/>
|
54 |
50 |
<mkdir dir="${dist}/config"/>
|
55 |
51 |
<mkdir dir="${dist}/lib"/>
|
56 |
|
<!-- Copy necessary distribution files to dist dir -->
|
57 |
|
<!-- <copy todir="${dist}/src">
|
58 |
|
<fileset dir="${src}"/>
|
59 |
|
</copy>
|
60 |
|
<copy todir="${dist}/doc">
|
61 |
|
<fileset dir="${doc}"/>
|
62 |
|
</copy> -->
|
|
52 |
|
63 |
53 |
<copy todir="${dist}/images">
|
64 |
54 |
<fileset dir="images"/>
|
65 |
55 |
</copy>
|
... | ... | |
78 |
68 |
<copy todir="${dist}/bin/com/iver/gvsig/geoprocessing/images">
|
79 |
69 |
<fileset dir="images"/>
|
80 |
70 |
</copy>
|
81 |
|
<!-- Zip distribution -->
|
82 |
|
<!--<zip destfile="${dist}/gvSIGGeoProcessingPlugin.zip"
|
83 |
|
basedir="${dist}"
|
84 |
|
update="true"
|
85 |
|
/> -->
|
|
71 |
|
86 |
72 |
</target>
|
87 |
73 |
|
88 |
74 |
<target name="clean-orig"
|
89 |
|
description="clean dist directory" >
|
90 |
|
<!-- Clean the distribution directory -->
|
|
75 |
description="clean the distribution directory" >
|
|
76 |
|
91 |
77 |
<delete dir="${dist}" />
|
92 |
78 |
</target>
|
93 |
79 |
|
... | ... | |
117 |
103 |
</move>
|
118 |
104 |
</target>
|
119 |
105 |
|
120 |
|
<target name="batch-build"
|
121 |
|
description="compile the sources, create the jar file"
|
122 |
|
depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami">
|
123 |
|
</target>
|
124 |
|
|
125 |
|
<target name="compile" description="compile the source" >
|
126 |
|
<antcall target="gvSIG-import-build-number"/>
|
127 |
|
<!-- Compile the Java code from ${src} to ${build} -->
|
128 |
|
<mkdir dir="${build}" />
|
129 |
|
<loadEclipseClasspath project="${basedir}"/>
|
130 |
|
<gvSIG-javac
|
131 |
|
classpath="${eclipseClasspath}"
|
132 |
|
/>
|
133 |
|
|
134 |
|
<copy todir="${build}">
|
135 |
|
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/>
|
136 |
|
</copy>
|
137 |
|
</target>
|
138 |
|
|
139 |
106 |
<target name="create-jar"
|
140 |
107 |
description="Creates the plugin jar">
|
141 |
108 |
<mkdir dir="${dist}/lib"/>
|
... | ... | |
180 |
147 |
<param name="TestSuite.Name" value="com.iver.cit.gvsig.geoprocess.AllTests"/>
|
181 |
148 |
</antcall>
|
182 |
149 |
</target>
|
|
150 |
|
|
151 |
<target name="_make-gvsig-pkg">
|
|
152 |
<exec executable="zip" output="/dev/null" os="Linux" dir="${extensionsDir}">
|
|
153 |
<arg value="-r"/>
|
|
154 |
<arg value="${basedir}/${plugin}.gvspkg"/>
|
|
155 |
<arg value="${plugin}/"/>
|
|
156 |
</exec>
|
|
157 |
</target>
|
183 |
158 |
|
184 |
159 |
</project>
|
185 |
160 |
|