svn-gvsig-desktop / tags / gvsig_redes-1_0_0-1235 / extensions / ext3Dgui / build.xml @ 31724
History | View | Annotate | Download (7.82 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 | 16337 | jmvivo | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" /> |
11 | 16304 | jcampos | <property name="andami-lib" value="../_fwAndami/lib" /> |
12 | 15361 | afraile | <property name="logos-dir" location="../_fwAndami/theme" /> |
13 | 15373 | afraile | <property name="gvsig-lib" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
14 | 16278 | jcampos | <property name="ext3Dgui-lib" value="../_fwAndami/gvSIG/extensiones/com.iver.ai2.gvsig3dgui/lib" /> |
15 | 16302 | jmvivo | <property name="binaries" location="../binaries/" /> |
16 | 16278 | jcampos | <property environment="env" /> |
17 | 21109 | jcampos | <property name="buildman" value="${env.HOMEPATH}/DepMan/" /> |
18 | <property name="buildman-lin" value="${env.HOME}/.depman/" /> |
||
19 | 16278 | jcampos | <import file="../binaries/ant/utilities.xml" /> |
20 | 21109 | jcampos | <!--property name="depman.executable" value="depman/bin/dmn.py" /-->
|
21 | |||
22 | |||
23 | <property name="buildman.executable" value="buildman/bin/bmn.py" /> |
||
24 | 15406 | julio | |
25 | 15361 | afraile | <!--property name="binaries-dir" location="../binaries" /-->
|
26 | |||
27 | 16278 | jcampos | <target name="compile" description="compile the source"> |
28 | 16267 | jmvivo | <!-- Compile the Java code from ${src} to ${build} -->
|
29 | 16278 | jcampos | <antcall target="gvSIG-import-build-number" /> |
30 | 16267 | jmvivo | <mkdir dir="${build}" /> |
31 | 16278 | jcampos | <loadEclipseClasspath project="${basedir}" /> |
32 | <gvSIG-javac classpath="${eclipseClasspath}" /> |
||
33 | </target>
|
||
34 | 15361 | afraile | |
35 | 16278 | jcampos | <target name="batch-build" description="Builds all. This is called by appgvSIG script" depends="compile,create-jar,copy-files,move-to-andami"> |
36 | 15361 | afraile | </target>
|
37 | |||
38 | 15406 | julio | <target name="init"> |
39 | 15361 | afraile | <!-- 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 | 16267 | jmvivo | <target name="create-jar"> |
47 | 15361 | afraile | <mkdir dir="${dist}" /> |
48 | <mkdir dir="${dist}/lib" /> |
||
49 | 16267 | jmvivo | |
50 | 15361 | afraile | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" /> |
51 | 16267 | jmvivo | </target>
|
52 | 15361 | afraile | |
53 | 16267 | jmvivo | <target name="copy-files"> |
54 | 15361 | afraile | <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 | 15406 | julio | <fileset dir="images/" includes="**/**" excludes="**/*.db" /> |
63 | 16267 | jmvivo | </copy>
|
64 | 15373 | afraile | <copy todir="${extension-dir}/${plugin}"> |
65 | 16267 | jmvivo | <fileset dir="resources" includes="**/**" /> |
66 | 15361 | afraile | </copy>
|
67 | |||
68 | 16267 | jmvivo | <!--copy todir="lib/">
|
69 | <fileset dir="${dist}/lib/" includes="*.jar" />
|
||
70 | </copy-->
|
||
71 | 15361 | afraile | |
72 | 16267 | jmvivo | <copy todir="${dist}/lib"> |
73 | 16278 | jcampos | <fileset dir="lib/" includes="**/**" excludes="com.iver.ai2.gvsig3d_share.jar" /> |
74 | 16267 | jmvivo | </copy>
|
75 | <copy todir="${gvsig-lib}"> |
||
76 | <fileset dir="lib/" includes="com.iver.ai2.gvsig3d_share.jar" /> |
||
77 | 16337 | jmvivo | </copy>
|
78 | 20146 | jcampos | <!--copy todir="${andami-lib}">
|
79 | 16337 | jmvivo | <fileset dir="lib/" includes="gluegen*.jar,jogl*.jar,libjosg-*.jar,libNative*.jar" />
|
80 | 20146 | jcampos | </copy-->
|
81 | 15361 | afraile | |
82 | 16267 | jmvivo | </target>
|
83 | 15361 | afraile | |
84 | 16267 | jmvivo | <target name="move-to-andami"> |
85 | <move todir="${extension-dir}/${plugin}"> |
||
86 | <fileset dir="${dist}" includes="**/**" /> |
||
87 | </move>
|
||
88 | 15361 | afraile | |
89 | </target>
|
||
90 | |||
91 | 16278 | jcampos | <target name="generate-without-source" description="generate the distribution without the source file" depends="create-jar,copy-files,move-to-andami"> |
92 | 15406 | julio | </target>
|
93 | |||
94 | 16267 | jmvivo | <target name="clean" description="clean up"> |
95 | <delete dir="${dist}" /> |
||
96 | <delete dir="${build}" /> |
||
97 | 15361 | afraile | </target>
|
98 | 16267 | jmvivo | |
99 | <target name="refresh-binaries"> |
||
100 | <ant dir="../binaries" /> |
||
101 | </target>
|
||
102 | |||
103 | 16278 | jcampos | |
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 | 16346 | jmvivo | <property name="win-binaries" value="${binaries}/w32/3D" /> |
127 | 16278 | jcampos | <mkdir dir="${win-binaries}" /> |
128 | <copy todir="${win-binaries}"> |
||
129 | 21109 | jcampos | <fileset dir="${buildman}/bin/" includes="**/**" excludes="*.exe" /> |
130 | 16278 | jcampos | </copy>
|
131 | </target>
|
||
132 | |||
133 | 16302 | jmvivo | <target name="copy-linux-binaries" if="isLinux" depends="update-binaries-remote"> |
134 | 16346 | jmvivo | <property name="linux-binaries" value="${binaries}/linux/3D" /> |
135 | 16278 | jcampos | <mkdir dir="${linux-binaries}" /> |
136 | <copy todir="${linux-binaries}"> |
||
137 | 21109 | jcampos | <fileset dir="${buildman-lin}/lib/" includes="*.so*,**/*.so*" followsymlinks="false" /> |
138 | 16302 | jmvivo | </copy>
|
139 | 17524 | jcampos | <echo>
|
140 | 16302 | jmvivo | OJO Falta los links |
141 | </echo>
|
||
142 | 17524 | jcampos | |
143 | <exec executable="${basedir}/gen_simb_link.sh"> |
||
144 | </exec>
|
||
145 | 16302 | jmvivo | <!--
|
146 | <exec executable="bash">
|
||
147 | <arg value="-c"/>
|
||
148 | 21109 | jcampos | <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 | 16302 | jmvivo | </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 | 21109 | jcampos | <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 | 16302 | jmvivo | </exec>
|
161 | -->
|
||
162 | |||
163 | |||
164 | 17524 | jcampos | </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 | 21109 | jcampos | <fileset dir="${linux-binaries}/.." includes="**/*" excludes="*.head" /> |
170 | 17524 | jcampos | </delete>
|
171 | <mkdir dir="${linux-binaries}" /> |
||
172 | <copy todir="${linux-binaries}"> |
||
173 | 21109 | jcampos | <fileset dir="${buildman-lin}/lib/" includes="*.so*,**/*.so*" followsymlinks="false" /> |
174 | 17524 | jcampos | </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 | 21109 | jcampos | <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 | 17524 | jcampos | </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 | 21109 | jcampos | <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 | 17524 | jcampos | </exec>
|
197 | -->
|
||
198 | |||
199 | |||
200 | 16278 | jcampos | </target>
|
201 | |||
202 | <target name="update-binaries-cache"> |
||
203 | <exec executable="python"> |
||
204 | 21109 | jcampos | <arg value="${buildman.executable}" /> |
205 | 16278 | jcampos | <arg value="update" /> |
206 | <arg value="--cache" /> |
||
207 | </exec>
|
||
208 | </target>
|
||
209 | |||
210 | <target name="update-binaries-remote"> |
||
211 | <exec executable="python"> |
||
212 | 21109 | jcampos | <arg value="${buildman.executable}" /> |
213 | 16278 | jcampos | <arg value="update" /> |
214 | <arg value="--remote" /> |
||
215 | </exec>
|
||
216 | </target>
|
||
217 | |||
218 | <target name="update-binaries-atifglrx-remote"> |
||
219 | <exec executable="python"> |
||
220 | 21109 | jcampos | <arg value="${buildman.executable}" /> |
221 | 16278 | jcampos | <arg value="update" /> |
222 | 21109 | jcampos | <arg value="--file" /> |
223 | 16278 | jcampos | <arg value="depman-atifglrx.xml" /> |
224 | <arg value="--remote" /> |
||
225 | </exec>
|
||
226 | </target>
|
||
227 | |||
228 | 16280 | jcampos | <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 | 15361 | afraile | </project> |