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