root / trunk / extensions / ext3Dgui / build.xml @ 21109
History | View | Annotate | Download (7.82 KB)
1 |
<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="andami-lib" value="../_fwAndami/lib" /> |
12 |
<property name="logos-dir" location="../_fwAndami/theme" /> |
13 |
<property name="gvsig-lib" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
14 |
<property name="ext3Dgui-lib" value="../_fwAndami/gvSIG/extensiones/com.iver.ai2.gvsig3dgui/lib" /> |
15 |
<property name="binaries" location="../binaries/" /> |
16 |
<property environment="env" /> |
17 |
<property name="buildman" value="${env.HOMEPATH}/DepMan/" /> |
18 |
<property name="buildman-lin" value="${env.HOME}/.depman/" /> |
19 |
<import file="../binaries/ant/utilities.xml" /> |
20 |
<!--property name="depman.executable" value="depman/bin/dmn.py" /-->
|
21 |
|
22 |
|
23 |
<property name="buildman.executable" value="buildman/bin/bmn.py" /> |
24 |
|
25 |
<!--property name="binaries-dir" location="../binaries" /-->
|
26 |
|
27 |
<target name="compile" description="compile the source"> |
28 |
<!-- Compile the Java code from ${src} to ${build} -->
|
29 |
<antcall target="gvSIG-import-build-number" /> |
30 |
<mkdir dir="${build}" /> |
31 |
<loadEclipseClasspath project="${basedir}" /> |
32 |
<gvSIG-javac classpath="${eclipseClasspath}" /> |
33 |
</target>
|
34 |
|
35 |
<target name="batch-build" description="Builds all. This is called by appgvSIG script" depends="compile,create-jar,copy-files,move-to-andami"> |
36 |
</target>
|
37 |
|
38 |
<target name="init"> |
39 |
<!-- Create the time stamp -->
|
40 |
<tstamp /> |
41 |
<!-- Create the build directory structure used by compile -->
|
42 |
<mkdir dir="${build}" /> |
43 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
44 |
</target>
|
45 |
|
46 |
<target name="create-jar"> |
47 |
<mkdir dir="${dist}" /> |
48 |
<mkdir dir="${dist}/lib" /> |
49 |
|
50 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" /> |
51 |
</target>
|
52 |
|
53 |
<target name="copy-files"> |
54 |
<copy file="config/config.xml" todir="${dist}" /> |
55 |
<copy file="config/about.htm" todir="${dist}" /> |
56 |
<replace casesensitive="true" file="${dist}/about.htm" token="#build.number#" value="${build.number}" /> |
57 |
|
58 |
<copy todir="${dist}"> |
59 |
<fileset dir="config" includes="text*.properties" /> |
60 |
</copy>
|
61 |
<copy todir="${dist}/images"> |
62 |
<fileset dir="images/" includes="**/**" excludes="**/*.db" /> |
63 |
</copy>
|
64 |
<copy todir="${extension-dir}/${plugin}"> |
65 |
<fileset dir="resources" includes="**/**" /> |
66 |
</copy>
|
67 |
|
68 |
<!--copy todir="lib/">
|
69 |
<fileset dir="${dist}/lib/" includes="*.jar" />
|
70 |
</copy-->
|
71 |
|
72 |
<copy todir="${dist}/lib"> |
73 |
<fileset dir="lib/" includes="**/**" excludes="com.iver.ai2.gvsig3d_share.jar" /> |
74 |
</copy>
|
75 |
<copy todir="${gvsig-lib}"> |
76 |
<fileset dir="lib/" includes="com.iver.ai2.gvsig3d_share.jar" /> |
77 |
</copy>
|
78 |
<!--copy todir="${andami-lib}">
|
79 |
<fileset dir="lib/" includes="gluegen*.jar,jogl*.jar,libjosg-*.jar,libNative*.jar" />
|
80 |
</copy-->
|
81 |
|
82 |
</target>
|
83 |
|
84 |
<target name="move-to-andami"> |
85 |
<move todir="${extension-dir}/${plugin}"> |
86 |
<fileset dir="${dist}" includes="**/**" /> |
87 |
</move>
|
88 |
|
89 |
</target>
|
90 |
|
91 |
<target name="generate-without-source" description="generate the distribution without the source file" depends="create-jar,copy-files,move-to-andami"> |
92 |
</target>
|
93 |
|
94 |
<target name="clean" description="clean up"> |
95 |
<delete dir="${dist}" /> |
96 |
<delete dir="${build}" /> |
97 |
</target>
|
98 |
|
99 |
<target name="refresh-binaries"> |
100 |
<ant dir="../binaries" /> |
101 |
</target>
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
<condition property="isLinux"> |
107 |
<os family="unix" /> |
108 |
</condition>
|
109 |
|
110 |
<condition property="isWindows"> |
111 |
<or>
|
112 |
<os family="windows" /> |
113 |
<os family="win9x" /> |
114 |
<os name="Windows Vista" /> |
115 |
</or>
|
116 |
</condition>
|
117 |
|
118 |
<condition property="isMac"> |
119 |
<os family="mac" /> |
120 |
</condition>
|
121 |
|
122 |
<target name="copy-binaries" depends="copy-linux-binaries,copy-win-binaries"> |
123 |
</target>
|
124 |
|
125 |
<target name="copy-win-binaries" if="isWindows" depends="update-binaries-remote"> |
126 |
<property name="win-binaries" value="${binaries}/w32/3D" /> |
127 |
<mkdir dir="${win-binaries}" /> |
128 |
<copy todir="${win-binaries}"> |
129 |
<fileset dir="${buildman}/bin/" includes="**/**" excludes="*.exe" /> |
130 |
</copy>
|
131 |
</target>
|
132 |
|
133 |
<target name="copy-linux-binaries" if="isLinux" depends="update-binaries-remote"> |
134 |
<property name="linux-binaries" value="${binaries}/linux/3D" /> |
135 |
<mkdir dir="${linux-binaries}" /> |
136 |
<copy todir="${linux-binaries}"> |
137 |
<fileset dir="${buildman-lin}/lib/" includes="*.so*,**/*.so*" followsymlinks="false" /> |
138 |
</copy>
|
139 |
<echo>
|
140 |
OJO Falta los links |
141 |
</echo>
|
142 |
|
143 |
<exec executable="${basedir}/gen_simb_link.sh"> |
144 |
</exec>
|
145 |
<!--
|
146 |
<exec executable="bash">
|
147 |
<arg value="-c"/>
|
148 |
<arg value="find ${buildman-lin}/lib/ -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/ln -s \2 \1/g' > ${linux-binaries}/install.sh.tmp"/>
|
149 |
</exec>
|
150 |
<concat destfile="${linux-binaries}/install-3D.sh">#!bin/sh
|
151 |
|
152 |
</concat>
|
153 |
<concat destfile="${linux-binaries}/install-3D.sh" append="true">
|
154 |
<filelist dir="${linux-binaries}" files="install.sh.tmp"/>
|
155 |
</concat>
|
156 |
<delete file="${linux-binaries}/install.sh.tmp"/>
|
157 |
<exec executable="bash">
|
158 |
<arg value="-c"/>
|
159 |
<arg value="cd ${buildman-lin}/lib/ ; (find . -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/\1=\2/g' > ${linux-binaries}/links.properties)"/>
|
160 |
</exec>
|
161 |
-->
|
162 |
|
163 |
|
164 |
</target>
|
165 |
|
166 |
<target name="copy-linux-binaries-complete" if="isLinux" depends="update-binaries-remote"> |
167 |
<property name="linux-binaries" value="${binaries}/linux/3D" /> |
168 |
<delete includeemptydirs="true"> |
169 |
<fileset dir="${linux-binaries}/.." includes="**/*" excludes="*.head" /> |
170 |
</delete>
|
171 |
<mkdir dir="${linux-binaries}" /> |
172 |
<copy todir="${linux-binaries}"> |
173 |
<fileset dir="${buildman-lin}/lib/" includes="*.so*,**/*.so*" followsymlinks="false" /> |
174 |
</copy>
|
175 |
<echo>
|
176 |
Generando fichero de links simbolicos |
177 |
</echo>
|
178 |
|
179 |
<exec executable="${basedir}/gen_simb_link.sh"> |
180 |
</exec>
|
181 |
<!--
|
182 |
<exec executable="bash">
|
183 |
<arg value="-c"/>
|
184 |
<arg value="find ${buildman-lin}/lib/ -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/ln -s \2 \1/g' > ${linux-binaries}/install.sh.tmp"/>
|
185 |
</exec>
|
186 |
<concat destfile="${linux-binaries}/install-3D.sh">#!bin/sh
|
187 |
|
188 |
</concat>
|
189 |
<concat destfile="${linux-binaries}/install-3D.sh" append="true">
|
190 |
<filelist dir="${linux-binaries}" files="install.sh.tmp"/>
|
191 |
</concat>
|
192 |
<delete file="${linux-binaries}/install.sh.tmp"/>
|
193 |
<exec executable="bash">
|
194 |
<arg value="-c"/>
|
195 |
<arg value="cd ${buildman-lin}/lib/ ; (find . -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/\1=\2/g' > ${linux-binaries}/links.properties)"/>
|
196 |
</exec>
|
197 |
-->
|
198 |
|
199 |
|
200 |
</target>
|
201 |
|
202 |
<target name="update-binaries-cache"> |
203 |
<exec executable="python"> |
204 |
<arg value="${buildman.executable}" /> |
205 |
<arg value="update" /> |
206 |
<arg value="--cache" /> |
207 |
</exec>
|
208 |
</target>
|
209 |
|
210 |
<target name="update-binaries-remote"> |
211 |
<exec executable="python"> |
212 |
<arg value="${buildman.executable}" /> |
213 |
<arg value="update" /> |
214 |
<arg value="--remote" /> |
215 |
</exec>
|
216 |
</target>
|
217 |
|
218 |
<target name="update-binaries-atifglrx-remote"> |
219 |
<exec executable="python"> |
220 |
<arg value="${buildman.executable}" /> |
221 |
<arg value="update" /> |
222 |
<arg value="--file" /> |
223 |
<arg value="depman-atifglrx.xml" /> |
224 |
<arg value="--remote" /> |
225 |
</exec>
|
226 |
</target>
|
227 |
|
228 |
<target name="get-win-binaries"> |
229 |
<exec executable="python"> |
230 |
<arg value="${depman.executable}" /> |
231 |
<arg value="--platform" /> |
232 |
<arg value="win" /> |
233 |
<arg value="update" /> |
234 |
</exec>
|
235 |
</target>
|
236 |
<target name="get-linux-binaries"> |
237 |
<exec executable="python"> |
238 |
<arg value="${depman.executable}" /> |
239 |
<arg value="--platform" /> |
240 |
<arg value="linux" /> |
241 |
<arg value="update" /> |
242 |
</exec>
|
243 |
</target>
|
244 |
|
245 |
|
246 |
</project>
|