svn-gvsig-desktop / tags / v1_2_Build_1203 / extensions / ext3Dgui / build.xml @ 40339
History | View | Annotate | Download (9.93 KB)
1 | 15361 | afraile | <project name="Generar extension en Andami ext3DGUI" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin de ejemplo en Andami. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src" /> |
||
7 | <property name="build" location="bin" /> |
||
8 | <property name="dist" location="dist" /> |
||
9 | <property name="plugin" value="com.iver.ai2.gvsig3dgui" /> |
||
10 | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" /> |
||
11 | <property name="logos-dir" location="../_fwAndami/theme" /> |
||
12 | 15373 | afraile | <property name="gvsig-lib" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
13 | <property name="ext3Dgui-lib" value="../_fwAndami/gvSIG/extensiones/com.iver.ai2.gvsig3dgui/lib" /> |
||
14 | 15406 | julio | |
15 | 15361 | afraile | <!--property name="binaries-dir" location="../binaries" /-->
|
16 | |||
17 | <target name="batch-build" description="Builds all. This is called by appgvSIG script" depends="distribution"> |
||
18 | </target>
|
||
19 | |||
20 | <target name="buildNumber"> |
||
21 | <propertyfile file="build.number" comment="Build Number for ANT. Do not edit!"> |
||
22 | <entry key="build.number" default="0" type="int" operation="+" /> |
||
23 | </propertyfile>
|
||
24 | <property file="build.number" /> |
||
25 | </target>
|
||
26 | |||
27 | <target name="distribution" description="increment build number and generate the distribution without the source file" depends="buildNumber,generate-without-source"> |
||
28 | </target>
|
||
29 | |||
30 | 15406 | julio | <target name="init"> |
31 | 15361 | afraile | <!-- Create the time stamp -->
|
32 | <tstamp /> |
||
33 | <!-- Create the build directory structure used by compile -->
|
||
34 | <mkdir dir="${build}" /> |
||
35 | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
||
36 | <buildnumber /> |
||
37 | </target>
|
||
38 | |||
39 | 15442 | julio | <target name="generate-without-source" description="generate the distribution without the source file" depends="copy-images, refresh-binaries"> |
40 | 15361 | afraile | <!-- Create the distribution directory -->
|
41 | <echo message="Build ext3Dgui" /> |
||
42 | <mkdir dir="${dist}" /> |
||
43 | <mkdir dir="${dist}/lib" /> |
||
44 | <!--mkdir dir="${dist}/binaries" /-->
|
||
45 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file
|
||
46 | 15406 | julio | Except classes to be instantiated in core gvSIG -->
|
47 | 15361 | afraile | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" /> |
48 | |||
49 | <copy file="config/config.xml" todir="${dist}" /> |
||
50 | <copy file="config/about.htm" todir="${dist}" /> |
||
51 | <replace casesensitive="true" file="${dist}/about.htm" token="#build.number#" value="${build.number}" /> |
||
52 | |||
53 | <copy todir="${dist}"> |
||
54 | <fileset dir="config" includes="text*.properties" /> |
||
55 | </copy>
|
||
56 | <copy todir="${dist}/images"> |
||
57 | 15406 | julio | <fileset dir="images/" includes="**/**" excludes="**/*.db" /> |
58 | </copy>
|
||
59 | |||
60 | 15373 | afraile | <!--copy todir="lib/">
|
61 | <fileset dir="${dist}/lib/" includes="*.jar" />
|
||
62 | </copy-->
|
||
63 | 15406 | julio | |
64 | 15373 | afraile | <copy todir="${dist}/lib"> |
65 | <fileset dir="lib/" includes="**/**" /> |
||
66 | 15406 | julio | </copy>
|
67 | 15373 | afraile | <copy todir="${extension-dir}/${plugin}"> |
68 | <fileset dir="${dist}" includes="**/**" /> |
||
69 | 15361 | afraile | </copy>
|
70 | 15482 | rgaitan | <copy todir="resources"> |
71 | 15408 | julio | <fileset dir="${ext3Dgui-lib}/../" includes="**" /> |
72 | </copy>
|
||
73 | 15406 | julio | <delete dir="${dist}" /> |
74 | 15361 | afraile | </target>
|
75 | 15406 | julio | |
76 | <target name="clean" description="clean up"> |
||
77 | <delete dir="${dist}" /> |
||
78 | <delete dir="${build}" /> |
||
79 | 15373 | afraile | </target>
|
80 | 15406 | julio | |
81 | 15361 | afraile | <target name="copy-images"> |
82 | <mkdir dir="${logos-dir}" /> |
||
83 | <copy todir="${logos-dir}"> |
||
84 | <fileset dir="images" includes="logo3D_es.png" /> |
||
85 | <fileset dir="images" includes="andami-theme.xml" /> |
||
86 | </copy>
|
||
87 | 15442 | julio | </target>
|
88 | |||
89 | <target name="refresh-binaries"> |
||
90 | <ant dir="../binaries/w32" /> |
||
91 | </target>
|
||
92 | |||
93 | 15361 | afraile | |
94 | |||
95 | <!-- Build for all 3D extension -->
|
||
96 | |||
97 | <target name="eclipse-build-all-3D" depends="debug-yes,base3D,extensions3D" description="Builds all for 3D extension, producing debug info" /> |
||
98 | <target name="eclipse-build-Base-3D" depends="debug-yes,base3D" description="Builds all for GvSIG basics, producing debug info" /> |
||
99 | |||
100 | <!-- Properties to base3D -->
|
||
101 | <property name="andami" location="../_fwAndami" /> |
||
102 | 15406 | julio | <property name="core" location="../JDialogSkin" /> |
103 | <property name="projection" location="../libProjection" /> |
||
104 | <property name="raster" location="../libRaster" /> |
||
105 | 15408 | julio | <property name="cresques" location="../libCresques" /> |
106 | 15406 | julio | <property name="dxf" location="../libDXF" /> |
107 | <property name="remote" location="../libRemoteServices" /> |
||
108 | <property name="gdbms" location="../libGDBMS" /> |
||
109 | 15361 | afraile | <property name="fmap" location="../libFMap" /> |
110 | 15406 | julio | <property name="gvSIG" location="../appgvSIG" /> |
111 | <property name="rasterToolSE" location="../extRasterTools-SE" /> |
||
112 | <property name="appcatalog" location="../appCatalogAndGazetteerClient" /> |
||
113 | <property name="catalog" location="../extCatalogAndGazetteer" /> |
||
114 | 15361 | afraile | |
115 | <!-- Properties to extension3D -->
|
||
116 | <property name="wcs" location="../extWCS" /> |
||
117 | <property name="wfs" location="../extWFS2" /> |
||
118 | 15373 | afraile | <property name="wms" location="../extWMS" /> |
119 | <property name="ext3D" location="../ext3D" /> |
||
120 | <property name="ext3Dgui" location="../ext3Dgui" /> |
||
121 | 15361 | afraile | |
122 | |||
123 | <target name="debug-yes"> |
||
124 | <property name="debug" value="on" /> |
||
125 | <property name="debuglevel" value="lines, vars" /> |
||
126 | </target>
|
||
127 | |||
128 | <target name="base3D" description="Builds the application for 3D"> |
||
129 | <ant dir="${andami}" target="batch-build" inheritAll="false"> |
||
130 | <property name="debug" value="${debug}" /> |
||
131 | <property name="debuglevel" value="${debuglevel}" /> |
||
132 | <property name="encoding" value="ISO_8859_1" /> |
||
133 | </ant>
|
||
134 | <ant dir="${core}" target="batch-build" inheritAll="false"> |
||
135 | <property name="debug" value="${debug}" /> |
||
136 | <property name="debuglevel" value="${debuglevel}" /> |
||
137 | <property name="encoding" value="ISO_8859_1" /> |
||
138 | 15406 | julio | </ant>
|
139 | 15442 | julio | <!--ant dir="${projection}" target="batch-build" inheritAll="false">
|
140 | 15406 | julio | <property name="debug" value="${debug}" />
|
141 | <property name="debuglevel" value="${debuglevel}" />
|
||
142 | <property name="encoding" value="ISO_8859_1" />
|
||
143 | 15442 | julio | </ant-->
|
144 | <!--ant dir="${raster}" target="batch-build" inheritAll="false">
|
||
145 | 15406 | julio | <property name="debug" value="${debug}" />
|
146 | <property name="debuglevel" value="${debuglevel}" />
|
||
147 | <property name="encoding" value="ISO_8859_1" />
|
||
148 | 15442 | julio | </ant-->
|
149 | <!--ant dir="${cresques}" target="batch-build" inheritAll="false">
|
||
150 | 15408 | julio | <property name="debug" value="${debug}" />
|
151 | <property name="debuglevel" value="${debuglevel}" />
|
||
152 | <property name="encoding" value="ISO_8859_1" />
|
||
153 | 15442 | julio | </ant-->
|
154 | <!--ant dir="${dxf}" target="batch-build" inheritAll="false">
|
||
155 | 15406 | julio | <property name="debug" value="${debug}" />
|
156 | <property name="debuglevel" value="${debuglevel}" />
|
||
157 | <property name="encoding" value="ISO_8859_1" />
|
||
158 | 15442 | julio | </ant-->
|
159 | <!--ant dir="${remote}" target="batch-build" inheritAll="false">
|
||
160 | 15406 | julio | <property name="debug" value="${debug}" />
|
161 | <property name="debuglevel" value="${debuglevel}" />
|
||
162 | <property name="encoding" value="ISO_8859_1" />
|
||
163 | 15442 | julio | </ant-->
|
164 | 15406 | julio | <!--ant dir="${gdbms}" target="batch-build" inheritAll="false">
|
165 | <property name="debug" value="${debug}" />
|
||
166 | <property name="debuglevel" value="${debuglevel}" />
|
||
167 | <property name="encoding" value="ISO_8859_1" />
|
||
168 | </ant>
|
||
169 | -->
|
||
170 | <ant dir="${fmap}" target="batch-build" inheritAll="false"> |
||
171 | <property name="debug" value="${debug}" /> |
||
172 | <property name="debuglevel" value="${debuglevel}" /> |
||
173 | <property name="encoding" value="ISO_8859_1" /> |
||
174 | </ant>
|
||
175 | 15361 | afraile | <ant dir="${gvSIG}" target="batch-build" inheritAll="false"> |
176 | <property name="debug" value="${debug}" /> |
||
177 | <property name="debuglevel" value="${debuglevel}" /> |
||
178 | <property name="encoding" value="ISO_8859_1" /> |
||
179 | 15406 | julio | </ant>
|
180 | 15442 | julio | <!--ant dir="${rasterToolSE}" target="batch-build" inheritAll="false">
|
181 | 15406 | julio | <property name="debug" value="${debug}" />
|
182 | <property name="debuglevel" value="${debuglevel}" />
|
||
183 | <property name="encoding" value="ISO_8859_1" />
|
||
184 | 15442 | julio | </ant-->
|
185 | 15361 | afraile | <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
186 | <available file="${appcatalog}" type="dir" /> |
||
187 | </condition>
|
||
188 | <ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false"> |
||
189 | <property name="debug" value="${debug}" /> |
||
190 | <property name="debuglevel" value="${debuglevel}" /> |
||
191 | <property name="encoding" value="ISO_8859_1" /> |
||
192 | </ant>
|
||
193 | <condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
||
194 | <available file="${catalog}" type="dir" /> |
||
195 | </condition>
|
||
196 | <ant dir="${catalog.Dir}" target="batch-build" inheritAll="false"> |
||
197 | <property name="debug" value="${debug}" /> |
||
198 | <property name="debuglevel" value="${debuglevel}" /> |
||
199 | <property name="encoding" value="ISO_8859_1" /> |
||
200 | </ant>
|
||
201 | 15406 | julio | </target>
|
202 | |||
203 | <target name="extensions3D" depends="base3D"> |
||
204 | |||
205 | 15361 | afraile | <condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
206 | <available file="${wcs}" type="dir" /> |
||
207 | </condition>
|
||
208 | <ant dir="${wcs.Dir}" target="batch-build" inheritAll="false"> |
||
209 | <property name="debug" value="${debug}" /> |
||
210 | <property name="debuglevel" value="${debuglevel}" /> |
||
211 | <property name="encoding" value="ISO_8859_1" /> |
||
212 | </ant>
|
||
213 | <condition property="wms.Dir" value="${wms}" else="voidTarget"> |
||
214 | <available file="${wms}" type="dir" /> |
||
215 | </condition>
|
||
216 | <ant dir="${wms.Dir}" target="batch-build" inheritAll="false"> |
||
217 | <property name="debug" value="${debug}" /> |
||
218 | <property name="debuglevel" value="${debuglevel}" /> |
||
219 | <property name="encoding" value="ISO_8859_1" /> |
||
220 | </ant>
|
||
221 | |||
222 | <condition property="wfs.Dir" value="${wfs}" else="voidTarget"> |
||
223 | <available file="${wfs}" type="dir" /> |
||
224 | </condition>
|
||
225 | <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false"> |
||
226 | <property name="debug" value="${debug}" /> |
||
227 | <property name="debuglevel" value="${debuglevel}" /> |
||
228 | <property name="encoding" value="ISO_8859_1" /> |
||
229 | 15373 | afraile | </ant>
|
230 | 15406 | julio | |
231 | 15373 | afraile | <condition property="ext3D.Dir" value="${ext3D}" else="voidTarget"> |
232 | <available file="${ext3D}" type="dir" /> |
||
233 | </condition>
|
||
234 | <ant dir="${ext3D.Dir}" target="batch-build" inheritAll="false"> |
||
235 | <property name="debug" value="${debug}" /> |
||
236 | <property name="debuglevel" value="${debuglevel}" /> |
||
237 | <property name="encoding" value="ISO_8859_1" /> |
||
238 | 15361 | afraile | </ant>
|
239 | |||
240 | <condition property="ext3Dgui.Dir" value="${ext3Dgui}" else="voidTarget"> |
||
241 | <available file="${ext3Dgui}" type="dir" /> |
||
242 | </condition>
|
||
243 | <ant dir="${ext3Dgui.Dir}" target="batch-build" inheritAll="false"> |
||
244 | <property name="debug" value="${debug}" /> |
||
245 | <property name="debuglevel" value="${debuglevel}" /> |
||
246 | <property name="encoding" value="ISO_8859_1" /> |
||
247 | </ant>
|
||
248 | </target>
|
||
249 | |||
250 | </project>
|