root / tags / v1_0_2_Build_902 / extensions / extGeoProcessing / build.xml @ 10681
History | View | Annotate | Download (6.25 KB)
1 |
<!--REHACERLO PARA QUE SE COPIEN BIEN LAS LIBRERIAS-->
|
---|---|
2 |
|
3 |
<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="doc" location="doc"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="without_src" location="without_src"/> |
13 |
<property name="plugin" value="com.iver.cit.gvsig.geoprocess"/> |
14 |
|
15 |
|
16 |
<property name="lib" value="lib"/> |
17 |
<property name="andami" value="../_fwAndami"/> |
18 |
<property name="jarName" value="${plugin}.jar"/> |
19 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
20 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
21 |
<property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
22 |
<property name="andamiLibs" location="${andami}/lib"/> |
23 |
<property name="fmapLibs" location="../libFMap/lib" /> |
24 |
<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib}/ehcache-1.2beta4.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${lib}/spatialindex.jar"/> |
25 |
<property name="JavaSourceVersion" value="1.4"/> |
26 |
<property name="JavaTargetVersion" value="1.4"/> |
27 |
|
28 |
|
29 |
<target name="init"> |
30 |
<!-- Create the time stamp -->
|
31 |
<tstamp/> |
32 |
<echo>
|
33 |
Compiling ${ant.project.name}...</echo>
|
34 |
</target>
|
35 |
|
36 |
<target name="import-build-number"> |
37 |
<copy todir="."> |
38 |
<fileset file="${buildNumberFile}"/> |
39 |
</copy>
|
40 |
</target>
|
41 |
|
42 |
<target name="dist" depends="init" |
43 |
description="generate the distribution" > |
44 |
<!-- Remove previous distribution directory -->
|
45 |
<delete dir="${dist}"/> |
46 |
<!-- Create the distribution directory structure -->
|
47 |
<mkdir dir="${dist}"/> |
48 |
<!-- <mkdir dir="${dist}/src"/> -->
|
49 |
<!-- <mkdir dir="${dist}/doc"/> -->
|
50 |
<mkdir dir="${dist}/bin"/> |
51 |
<mkdir dir="${dist}/bin/com"/> |
52 |
<mkdir dir="${dist}/bin/com/iver"/> |
53 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
54 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
55 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing/images"/> |
56 |
<mkdir dir="${dist}/images"/> |
57 |
<mkdir dir="${dist}/config"/> |
58 |
<mkdir dir="${dist}/lib"/> |
59 |
<!-- Copy necessary distribution files to dist dir -->
|
60 |
<!-- <copy todir="${dist}/src">
|
61 |
<fileset dir="${src}"/>
|
62 |
</copy>
|
63 |
<copy todir="${dist}/doc">
|
64 |
<fileset dir="${doc}"/>
|
65 |
</copy> -->
|
66 |
<copy todir="${dist}/images"> |
67 |
<fileset dir="images"/> |
68 |
</copy>
|
69 |
<copy todir="${dist}/lib"> |
70 |
<fileset dir="lib" includes="*.*"/> |
71 |
</copy>
|
72 |
<copy file="config/config.xml" todir="${dist}/config"/> |
73 |
<copy file="build.number" todir="${dist}"/> |
74 |
<copy file="build.xml" todir="${dist}"/> |
75 |
<copy todir="${dist}"> |
76 |
<fileset dir="config" includes="text*.properties"/> |
77 |
</copy>
|
78 |
<jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/> |
79 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
80 |
<copy file="build.number" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
81 |
<copy todir="${dist}/bin/com/iver/gvsig/geoprocessing/images"> |
82 |
<fileset dir="images"/> |
83 |
</copy>
|
84 |
<!-- Zip distribution -->
|
85 |
<!--<zip destfile="${dist}/gvSIGGeoProcessingPlugin.zip"
|
86 |
basedir="${dist}"
|
87 |
update="true"
|
88 |
/> -->
|
89 |
</target>
|
90 |
|
91 |
<target name="clean-orig" |
92 |
description="clean dist directory" > |
93 |
<!-- Clean the distribution directory -->
|
94 |
<delete dir="${dist}" /> |
95 |
</target>
|
96 |
|
97 |
<target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
98 |
<!-- Create the distribution directory -->
|
99 |
<mkdir dir="${without_src}"/> |
100 |
<mkdir dir="${without_src}/lib"/> |
101 |
|
102 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
103 |
<jar jarfile="${without_src}/lib/${plugin}.jar" basedir="${build}"/> |
104 |
<copy file="config/config.xml" todir="${without_src}"/> |
105 |
<copy file="build.number" todir="${without_src}"/> |
106 |
<copy todir="${without_src}"> |
107 |
<fileset dir="config" includes="text*.properties"/> |
108 |
</copy>
|
109 |
<copy todir="${without_src}/lib"> |
110 |
<fileset dir="lib" includes="*.*"/> |
111 |
</copy>
|
112 |
<copy todir="${without_src}/images"> |
113 |
<fileset dir="images/" includes="*"/> |
114 |
</copy>
|
115 |
<move todir="${extensionsDir}/${plugin}/"> |
116 |
<fileset dir="${without_src}" includes="**/**"/> |
117 |
</move>
|
118 |
</target>
|
119 |
|
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 |
<!-- Compile the Java code from ${src} to ${build} -->
|
127 |
<mkdir dir="${build}" /> |
128 |
<javac srcdir="${src}" |
129 |
destdir="${build}" |
130 |
source="${JavaSourceVersion}" |
131 |
target="${JavaTargetVersion}" |
132 |
debug="${debug}" |
133 |
debuglevel="${debuglevel}" |
134 |
classpath="${compile-classpath}"/> |
135 |
<copy todir="${build}"> |
136 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
137 |
</copy>
|
138 |
</target>
|
139 |
|
140 |
<target name="create-jar" |
141 |
description="Creates the plugin jar"> |
142 |
<mkdir dir="${dist}"/> |
143 |
<!-- <jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/>-->
|
144 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
145 |
</target>
|
146 |
|
147 |
<target name="copy-data-files"> |
148 |
<copy file="config/config.xml" todir="${dist}"/> |
149 |
<copy file="build.number" todir="${dist}"/> |
150 |
<copy todir="${dist}"> |
151 |
<fileset dir="config" includes="text*.properties"/> |
152 |
</copy>
|
153 |
<copy todir="${dist}/images"> |
154 |
<fileset dir="images/" includes="*"/> |
155 |
</copy>
|
156 |
</target>
|
157 |
|
158 |
<target name="copy-libs"> |
159 |
<copy todir="${dist}/lib"> |
160 |
<fileset dir="lib" includes="*.*"/> |
161 |
</copy>
|
162 |
<copy todir="${dist}/lib"> |
163 |
<fileset file="${dist}/${jarName}" /> |
164 |
</copy>
|
165 |
</target>
|
166 |
|
167 |
<target name="move-to-andami"> |
168 |
<move todir="${extensionsDir}/${plugin}/"> |
169 |
<fileset dir="${dist}" includes="**/**"/> |
170 |
</move>
|
171 |
</target>
|
172 |
|
173 |
<target name="clean" |
174 |
description="clean up" > |
175 |
<delete dir="${build}"/> |
176 |
<delete dir="${dist}"/> |
177 |
</target>
|
178 |
|
179 |
</project>
|
180 |
|