svn-gvsig-desktop / import / ext3D / branches / ext3D_v1.1 / ext3Dgui / build.xml @ 15441
History | View | Annotate | Download (9.8 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 | <target name="generate-without-source" description="generate the distribution without the source file" depends="copy-images"> |
||
40 | <!-- 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 | 15408 | julio | <copy todir="resources}"> |
71 | <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 | </target>
|
||
88 | |||
89 | |||
90 | <!-- Build for all 3D extension -->
|
||
91 | |||
92 | <target name="eclipse-build-all-3D" depends="debug-yes,base3D,extensions3D" description="Builds all for 3D extension, producing debug info" /> |
||
93 | <target name="eclipse-build-Base-3D" depends="debug-yes,base3D" description="Builds all for GvSIG basics, producing debug info" /> |
||
94 | |||
95 | <!-- Properties to base3D -->
|
||
96 | <property name="andami" location="../_fwAndami" /> |
||
97 | 15406 | julio | <property name="core" location="../JDialogSkin" /> |
98 | <property name="projection" location="../libProjection" /> |
||
99 | <property name="raster" location="../libRaster" /> |
||
100 | 15408 | julio | <property name="cresques" location="../libCresques" /> |
101 | 15406 | julio | <property name="dxf" location="../libDXF" /> |
102 | <property name="remote" location="../libRemoteServices" /> |
||
103 | <property name="gdbms" location="../libGDBMS" /> |
||
104 | 15361 | afraile | <property name="fmap" location="../libFMap" /> |
105 | 15406 | julio | <property name="gvSIG" location="../appgvSIG" /> |
106 | <property name="rasterToolSE" location="../extRasterTools-SE" /> |
||
107 | <property name="appcatalog" location="../appCatalogAndGazetteerClient" /> |
||
108 | <property name="catalog" location="../extCatalogAndGazetteer" /> |
||
109 | 15361 | afraile | |
110 | <!-- Properties to extension3D -->
|
||
111 | <property name="wcs" location="../extWCS" /> |
||
112 | <property name="wfs" location="../extWFS2" /> |
||
113 | 15373 | afraile | <property name="wms" location="../extWMS" /> |
114 | <property name="ext3D" location="../ext3D" /> |
||
115 | <property name="ext3Dgui" location="../ext3Dgui" /> |
||
116 | 15361 | afraile | |
117 | |||
118 | <target name="debug-yes"> |
||
119 | <property name="debug" value="on" /> |
||
120 | <property name="debuglevel" value="lines, vars" /> |
||
121 | </target>
|
||
122 | |||
123 | <target name="base3D" description="Builds the application for 3D"> |
||
124 | <ant dir="${andami}" target="batch-build" inheritAll="false"> |
||
125 | <property name="debug" value="${debug}" /> |
||
126 | <property name="debuglevel" value="${debuglevel}" /> |
||
127 | <property name="encoding" value="ISO_8859_1" /> |
||
128 | </ant>
|
||
129 | <ant dir="${core}" 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 | 15406 | julio | </ant>
|
134 | <ant dir="${projection}" 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 | </ant>
|
||
139 | <ant dir="${raster}" target="batch-build" inheritAll="false"> |
||
140 | <property name="debug" value="${debug}" /> |
||
141 | <property name="debuglevel" value="${debuglevel}" /> |
||
142 | <property name="encoding" value="ISO_8859_1" /> |
||
143 | </ant>
|
||
144 | 15408 | julio | <ant dir="${cresques}" target="batch-build" inheritAll="false"> |
145 | <property name="debug" value="${debug}" /> |
||
146 | <property name="debuglevel" value="${debuglevel}" /> |
||
147 | <property name="encoding" value="ISO_8859_1" /> |
||
148 | </ant>
|
||
149 | 15406 | julio | <ant dir="${dxf}" target="batch-build" inheritAll="false"> |
150 | <property name="debug" value="${debug}" /> |
||
151 | <property name="debuglevel" value="${debuglevel}" /> |
||
152 | <property name="encoding" value="ISO_8859_1" /> |
||
153 | </ant>
|
||
154 | <ant dir="${remote}" target="batch-build" inheritAll="false"> |
||
155 | <property name="debug" value="${debug}" /> |
||
156 | <property name="debuglevel" value="${debuglevel}" /> |
||
157 | <property name="encoding" value="ISO_8859_1" /> |
||
158 | </ant>
|
||
159 | <!--ant dir="${gdbms}" target="batch-build" inheritAll="false">
|
||
160 | <property name="debug" value="${debug}" />
|
||
161 | <property name="debuglevel" value="${debuglevel}" />
|
||
162 | <property name="encoding" value="ISO_8859_1" />
|
||
163 | </ant>
|
||
164 | -->
|
||
165 | <ant dir="${fmap}" target="batch-build" inheritAll="false"> |
||
166 | <property name="debug" value="${debug}" /> |
||
167 | <property name="debuglevel" value="${debuglevel}" /> |
||
168 | <property name="encoding" value="ISO_8859_1" /> |
||
169 | </ant>
|
||
170 | 15361 | afraile | <ant dir="${gvSIG}" 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 | 15406 | julio | </ant>
|
175 | <ant dir="${rasterToolSE}" 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 | </ant>
|
||
180 | 15361 | afraile | <condition property="appcatalog.Dir" value="${appcatalog}" else="voidTarget"> |
181 | <available file="${appcatalog}" type="dir" /> |
||
182 | </condition>
|
||
183 | <ant dir="${appcatalog.Dir}" target="batch-build" inheritAll="false"> |
||
184 | <property name="debug" value="${debug}" /> |
||
185 | <property name="debuglevel" value="${debuglevel}" /> |
||
186 | <property name="encoding" value="ISO_8859_1" /> |
||
187 | </ant>
|
||
188 | <condition property="catalog.Dir" value="${catalog}" else="voidTarget"> |
||
189 | <available file="${catalog}" type="dir" /> |
||
190 | </condition>
|
||
191 | <ant dir="${catalog.Dir}" target="batch-build" inheritAll="false"> |
||
192 | <property name="debug" value="${debug}" /> |
||
193 | <property name="debuglevel" value="${debuglevel}" /> |
||
194 | <property name="encoding" value="ISO_8859_1" /> |
||
195 | </ant>
|
||
196 | 15406 | julio | </target>
|
197 | |||
198 | <target name="extensions3D" depends="base3D"> |
||
199 | |||
200 | 15361 | afraile | <condition property="wcs.Dir" value="${wcs}" else="voidTarget"> |
201 | <available file="${wcs}" type="dir" /> |
||
202 | </condition>
|
||
203 | <ant dir="${wcs.Dir}" target="batch-build" inheritAll="false"> |
||
204 | <property name="debug" value="${debug}" /> |
||
205 | <property name="debuglevel" value="${debuglevel}" /> |
||
206 | <property name="encoding" value="ISO_8859_1" /> |
||
207 | </ant>
|
||
208 | <condition property="wms.Dir" value="${wms}" else="voidTarget"> |
||
209 | <available file="${wms}" type="dir" /> |
||
210 | </condition>
|
||
211 | <ant dir="${wms.Dir}" target="batch-build" inheritAll="false"> |
||
212 | <property name="debug" value="${debug}" /> |
||
213 | <property name="debuglevel" value="${debuglevel}" /> |
||
214 | <property name="encoding" value="ISO_8859_1" /> |
||
215 | </ant>
|
||
216 | |||
217 | <condition property="wfs.Dir" value="${wfs}" else="voidTarget"> |
||
218 | <available file="${wfs}" type="dir" /> |
||
219 | </condition>
|
||
220 | <ant dir="${wfs.Dir}" target="batch-build" inheritAll="false"> |
||
221 | <property name="debug" value="${debug}" /> |
||
222 | <property name="debuglevel" value="${debuglevel}" /> |
||
223 | <property name="encoding" value="ISO_8859_1" /> |
||
224 | 15373 | afraile | </ant>
|
225 | 15406 | julio | |
226 | 15373 | afraile | <condition property="ext3D.Dir" value="${ext3D}" else="voidTarget"> |
227 | <available file="${ext3D}" type="dir" /> |
||
228 | </condition>
|
||
229 | <ant dir="${ext3D.Dir}" target="batch-build" inheritAll="false"> |
||
230 | <property name="debug" value="${debug}" /> |
||
231 | <property name="debuglevel" value="${debuglevel}" /> |
||
232 | <property name="encoding" value="ISO_8859_1" /> |
||
233 | 15361 | afraile | </ant>
|
234 | |||
235 | <condition property="ext3Dgui.Dir" value="${ext3Dgui}" else="voidTarget"> |
||
236 | <available file="${ext3Dgui}" type="dir" /> |
||
237 | </condition>
|
||
238 | <ant dir="${ext3Dgui.Dir}" target="batch-build" inheritAll="false"> |
||
239 | <property name="debug" value="${debug}" /> |
||
240 | <property name="debuglevel" value="${debuglevel}" /> |
||
241 | <property name="encoding" value="ISO_8859_1" /> |
||
242 | </ant>
|
||
243 | </target>
|
||
244 | |||
245 | </project>
|