root / trunk / extensions / extGeoProcessing / build.xml @ 11445
History | View | Annotate | Download (6.04 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="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
25 |
<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"/> |
26 |
|
27 |
|
28 |
<target name="init"> |
29 |
<!-- Create the time stamp -->
|
30 |
<tstamp/> |
31 |
<echo>
|
32 |
Compiling ${ant.project.name}...</echo>
|
33 |
</target>
|
34 |
|
35 |
<target name="import-build-number"> |
36 |
<copy todir="."> |
37 |
<fileset file="${buildNumberFile}"/> |
38 |
</copy>
|
39 |
</target>
|
40 |
|
41 |
<target name="dist" depends="init" |
42 |
description="generate the distribution" > |
43 |
<!-- Remove previous distribution directory -->
|
44 |
<delete dir="${dist}"/> |
45 |
<!-- Create the distribution directory structure -->
|
46 |
<mkdir dir="${dist}"/> |
47 |
<!-- <mkdir dir="${dist}/src"/> -->
|
48 |
<!-- <mkdir dir="${dist}/doc"/> -->
|
49 |
<mkdir dir="${dist}/bin"/> |
50 |
<mkdir dir="${dist}/bin/com"/> |
51 |
<mkdir dir="${dist}/bin/com/iver"/> |
52 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
53 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
54 |
<mkdir dir="${dist}/bin/com/iver/gvsig/geoprocessing/images"/> |
55 |
<mkdir dir="${dist}/images"/> |
56 |
<mkdir dir="${dist}/config"/> |
57 |
<mkdir dir="${dist}/lib"/> |
58 |
<!-- Copy necessary distribution files to dist dir -->
|
59 |
<!-- <copy todir="${dist}/src">
|
60 |
<fileset dir="${src}"/>
|
61 |
</copy>
|
62 |
<copy todir="${dist}/doc">
|
63 |
<fileset dir="${doc}"/>
|
64 |
</copy> -->
|
65 |
<copy todir="${dist}/images"> |
66 |
<fileset dir="images"/> |
67 |
</copy>
|
68 |
<copy todir="${dist}/lib"> |
69 |
<fileset dir="lib" includes="*.*"/> |
70 |
</copy>
|
71 |
<copy file="config/config.xml" todir="${dist}/config"/> |
72 |
<copy file="build.number" todir="${dist}"/> |
73 |
<copy file="build.xml" todir="${dist}"/> |
74 |
<copy todir="${dist}"> |
75 |
<fileset dir="config" includes="text*.properties"/> |
76 |
</copy>
|
77 |
<jar jarfile="${dist}/bin/com/iver/gvsig/geoprocessing/${plugin}.jar" basedir="${build}"/> |
78 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
79 |
<copy file="build.number" todir="${dist}/bin/com/iver/gvsig/geoprocessing"/> |
80 |
<copy todir="${dist}/bin/com/iver/gvsig/geoprocessing/images"> |
81 |
<fileset dir="images"/> |
82 |
</copy>
|
83 |
<!-- Zip distribution -->
|
84 |
<!--<zip destfile="${dist}/gvSIGGeoProcessingPlugin.zip"
|
85 |
basedir="${dist}"
|
86 |
update="true"
|
87 |
/> -->
|
88 |
</target>
|
89 |
|
90 |
<target name="clean-orig" |
91 |
description="clean dist directory" > |
92 |
<!-- Clean the distribution directory -->
|
93 |
<delete dir="${dist}" /> |
94 |
</target>
|
95 |
|
96 |
<target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
97 |
<!-- Create the distribution directory -->
|
98 |
<mkdir dir="${without_src}"/> |
99 |
<mkdir dir="${without_src}/lib"/> |
100 |
|
101 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
102 |
<jar jarfile="${without_src}/lib/${plugin}.jar" basedir="${build}"/> |
103 |
<copy file="config/config.xml" todir="${without_src}"/> |
104 |
<copy file="build.number" todir="${without_src}"/> |
105 |
<copy todir="${without_src}"> |
106 |
<fileset dir="config" includes="text*.properties"/> |
107 |
</copy>
|
108 |
<copy todir="${without_src}/lib"> |
109 |
<fileset dir="lib" includes="*.*"/> |
110 |
</copy>
|
111 |
<copy todir="${without_src}/images"> |
112 |
<fileset dir="images/" includes="*"/> |
113 |
</copy>
|
114 |
<move todir="${extensionsDir}/${plugin}/"> |
115 |
<fileset dir="${without_src}" includes="**/**"/> |
116 |
</move>
|
117 |
</target>
|
118 |
|
119 |
<target name="batch-build" |
120 |
description="compile the sources, create the jar file" |
121 |
depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
122 |
</target>
|
123 |
|
124 |
<target name="compile" description="compile the source" > |
125 |
<!-- Compile the Java code from ${src} to ${build} -->
|
126 |
<mkdir dir="${build}" /> |
127 |
<javac srcdir="${src}" |
128 |
destdir="${build}" |
129 |
source="1.4" |
130 |
target="1.4" |
131 |
debug="${debug}" |
132 |
debuglevel="${debuglevel}" |
133 |
classpath="${compile-classpath}"/> |
134 |
<copy todir="${build}"> |
135 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
136 |
</copy>
|
137 |
</target>
|
138 |
|
139 |
<target name="create-jar" |
140 |
description="Creates the plugin jar"> |
141 |
<mkdir dir="${dist}/lib"/> |
142 |
<jar jarfile="${dist}/lib/${jarName}" basedir="${build}"/> |
143 |
</target>
|
144 |
|
145 |
<target name="copy-data-files"> |
146 |
<copy file="config/config.xml" todir="${dist}"/> |
147 |
<copy file="build.number" todir="${dist}"/> |
148 |
<copy todir="${dist}"> |
149 |
<fileset dir="config" includes="text*.properties"/> |
150 |
</copy>
|
151 |
<copy todir="${dist}/images"> |
152 |
<fileset dir="images/" includes="*"/> |
153 |
</copy>
|
154 |
</target>
|
155 |
|
156 |
<target name="copy-libs"> |
157 |
<copy todir="${dist}/lib"> |
158 |
<fileset dir="lib" includes="*.*"/> |
159 |
</copy>
|
160 |
</target>
|
161 |
|
162 |
<target name="move-to-andami"> |
163 |
<move todir="${extensionsDir}/${plugin}/"> |
164 |
<fileset dir="${dist}" includes="**/**"/> |
165 |
</move>
|
166 |
</target>
|
167 |
|
168 |
<target name="clean" |
169 |
description="clean up" > |
170 |
<delete dir="${build}"/> |
171 |
<delete dir="${dist}"/> |
172 |
</target>
|
173 |
|
174 |
</project>
|
175 |
|