svn-gvsig-desktop / branches / gvSIG_1.11.0_Mejoras_gvSIG-EIEL / extensions / extTopology / build.xml @ 40165
History | View | Annotate | Download (7.13 KB)
1 |
<!--REHACERLO PARA QUE SE COPIEN BIEN LAS LIBRERIAS-->
|
---|---|
2 |
|
3 |
<project name="Topology" default="generate-without-source" basedir="."> |
4 |
<description>
|
5 |
Instala el plugin de Topologia en Andami. |
6 |
</description>
|
7 |
|
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="org.gvsig.topology"/> |
16 |
|
17 |
|
18 |
<property name="lib" value="lib"/> |
19 |
<property name="andami" value="../_fwAndami"/> |
20 |
<property name="jarName" value="${plugin}.jar"/> |
21 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
22 |
<property name="docsGeoprocessDir" location="${extensionsDir}/${plugin}/docs"/> |
23 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
24 |
<!--property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/-->
|
25 |
<property name="andamiLibs" location="${andami}/lib"/> |
26 |
<property name="fmapLibs" location="../libFMap/lib" /> |
27 |
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
28 |
<import file="../binaries/ant/utilities.xml"/> |
29 |
|
30 |
<target name="init"> |
31 |
<!-- Create the time stamp -->
|
32 |
<tstamp/> |
33 |
<echo>
|
34 |
Compiling ${ant.project.name}...</echo>
|
35 |
</target>
|
36 |
|
37 |
<target name="dist" depends="init" |
38 |
description="generate the distribution" > |
39 |
<!-- Remove previous distribution directory -->
|
40 |
<delete dir="${dist}"/> |
41 |
<!-- Create the distribution directory structure -->
|
42 |
<mkdir dir="${dist}"/> |
43 |
<mkdir dir="${dist}/bin"/> |
44 |
<mkdir dir="${dist}/bin/org"/> |
45 |
<mkdir dir="${dist}/bin/org/gvsig"/> |
46 |
<mkdir dir="${dist}/bin/org/gvsig/topology"/> |
47 |
<mkdir dir="${dist}/bin/org/gvsig/topology/images"/> |
48 |
<mkdir dir="${dist}/images"/> |
49 |
<mkdir dir="${dist}/config"/> |
50 |
<mkdir dir="${dist}/config/docs"/> |
51 |
<mkdir dir="${dist}/lib"/> |
52 |
<!-- Copy necessary distribution files to dist dir -->
|
53 |
<copy todir="${dist}/images"> |
54 |
<fileset dir="images"/> |
55 |
</copy>
|
56 |
<copy todir="${dist}/lib"> |
57 |
<fileset dir="lib" includes="*.*"/> |
58 |
</copy>
|
59 |
<copy file="config/config.xml" todir="${dist}/config"/> |
60 |
<copy file="build.number" todir="${dist}"/> |
61 |
<copy file="build.xml" todir="${dist}"/> |
62 |
<copy todir="${dist}"> |
63 |
<fileset dir="config" includes="text*.properties"/> |
64 |
</copy>
|
65 |
<jar jarfile="${dist}/bin/org/gvsig/topology/${plugin}.jar" basedir="${build}"/> |
66 |
<copy file="config/config.xml" todir="${dist}/bin/org/gvsig/topology"/> |
67 |
<copy file="build.number" todir="${dist}/bin/org/gvsig/topology"/> |
68 |
<copy todir="${dist}/bin/org/gvsig/topology/images"> |
69 |
<fileset dir="images"/> |
70 |
</copy>
|
71 |
<copy todir="${dist}/docs"> |
72 |
<fileset dir="config/docs" includes="**/*.*"/> |
73 |
</copy>
|
74 |
</target>
|
75 |
|
76 |
<target name="clean-orig" |
77 |
description="clean dist directory" > |
78 |
<!-- Clean the distribution directory -->
|
79 |
<delete dir="${dist}" /> |
80 |
</target>
|
81 |
|
82 |
<target name="generate-without-source" |
83 |
depends="clean-orig" |
84 |
description="generate the distribution without the source file" > |
85 |
|
86 |
<!-- Create the distribution directory -->
|
87 |
<mkdir dir="${without_src}"/> |
88 |
<mkdir dir="${without_src}/lib"/> |
89 |
<mkdir dir="${without_src}/docs"/> |
90 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
91 |
<jar jarfile="${without_src}/lib/${plugin}.jar" basedir="${build}"/> |
92 |
<copy file="config/config.xml" todir="${without_src}"/> |
93 |
<copy file="build.number" todir="${without_src}"/> |
94 |
|
95 |
|
96 |
|
97 |
|
98 |
<copy file="config/about.htm" todir="${without_src}"/> |
99 |
<loadproperties srcFile="build.number"/> |
100 |
<replace casesensitive="true" |
101 |
file="${without_src}/about.htm" |
102 |
token="#build.number#" |
103 |
value="${build.number}"/> |
104 |
|
105 |
<propertyfile file="package.info"> |
106 |
<entry key="build" value="${build.number}"/> |
107 |
<entry key="buildNumber" value="${build.number}"/> |
108 |
</propertyfile>
|
109 |
<copy file="package.info" todir="${without_src}"/> |
110 |
|
111 |
<copy todir="${without_src}"> |
112 |
<fileset dir="config" includes="text*.properties"/> |
113 |
</copy>
|
114 |
|
115 |
|
116 |
<copy todir="${without_src}/docs"> |
117 |
<fileset dir="config/docs" includes="**/*.*"/> |
118 |
</copy>
|
119 |
|
120 |
<!--
|
121 |
<copy todir="${without_src}/lib">
|
122 |
<fileset dir="lib" includes="*.*"/>
|
123 |
</copy>
|
124 |
-->
|
125 |
<copy todir="${without_src}/images"> |
126 |
<fileset dir="images/" includes="*"/> |
127 |
</copy>
|
128 |
|
129 |
<move todir="${extensionsDir}/${plugin}/"> |
130 |
<fileset dir="${without_src}" includes="**/**"/> |
131 |
</move>
|
132 |
</target>
|
133 |
|
134 |
|
135 |
<target name="batch-build" |
136 |
description="compile the sources, create the jar file" |
137 |
depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
138 |
</target>
|
139 |
|
140 |
<target name="compile" description="compile the source" > |
141 |
<!-- <antcall target="gvSIG-import-build-number"/> -->
|
142 |
<!-- Compile the Java code from ${src} to ${build} -->
|
143 |
<mkdir dir="${build}" /> |
144 |
<loadEclipseClasspath project="${basedir}"/> |
145 |
<gvSIG-javac
|
146 |
classpath="${eclipseClasspath}" |
147 |
/>
|
148 |
|
149 |
<copy todir="${build}"> |
150 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
151 |
</copy>
|
152 |
</target>
|
153 |
|
154 |
<target name="create-jar" |
155 |
description="Creates the plugin jar"> |
156 |
<mkdir dir="${dist}/lib"/> |
157 |
<jar jarfile="${dist}/lib/${jarName}" basedir="${build}"/> |
158 |
</target>
|
159 |
|
160 |
<target name="copy-data-files"> |
161 |
<copy file="config/config.xml" todir="${dist}"/> |
162 |
<copy file="build.number" todir="${dist}"/> |
163 |
<copy file="config/about.htm" todir="${dist}"/> |
164 |
<loadproperties srcFile="build.number"/> |
165 |
<replace casesensitive="true" |
166 |
file="${dist}/about.htm" |
167 |
token="#build.number#" |
168 |
value="${build.number}"/> |
169 |
<copy todir="${dist}"> |
170 |
<fileset dir="config" includes="text*.properties"/> |
171 |
</copy>
|
172 |
<copy todir="${dist}/images"> |
173 |
<fileset dir="images/" includes="*"/> |
174 |
</copy>
|
175 |
<copy todir="${dist}/docs"> |
176 |
<fileset dir="config/docs" includes="**/*.*"/> |
177 |
</copy>
|
178 |
</target>
|
179 |
|
180 |
<target name="copy-libs"> |
181 |
<copy todir="${dist}/lib"> |
182 |
<fileset dir="lib" includes="*.*"/> |
183 |
</copy>
|
184 |
</target>
|
185 |
|
186 |
<target name="move-to-andami"> |
187 |
<move todir="${extensionsDir}/${plugin}/"> |
188 |
<fileset dir="${dist}" includes="**/**"/> |
189 |
</move>
|
190 |
</target>
|
191 |
|
192 |
<target name="clean" |
193 |
description="clean up" > |
194 |
<delete dir="${build}"/> |
195 |
<delete dir="${dist}"/> |
196 |
</target>
|
197 |
|
198 |
<target name="run-tests" depends="batch-build,compile-tests"> |
199 |
<antcall target="generic-run-tests"> |
200 |
<param name="TestSuite.Name" value="com.iver.cit.gvsig.geoprocess.AllTests"/> |
201 |
</antcall>
|
202 |
</target>
|
203 |
|
204 |
<target name="buildNumber"> |
205 |
<propertyfile file="build.number" |
206 |
comment="Build Number for ANT. Do not edit!"> |
207 |
<entry key="build.number" default="0" type="int" operation="+" pattern="0"/> |
208 |
</propertyfile>
|
209 |
<property file="build.number" /> |
210 |
</target>
|
211 |
|
212 |
<target name="distribution" |
213 |
depends="buildNumber,generate-without-source"/> |
214 |
|
215 |
</project>
|
216 |
|