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