svn-gvsig-desktop / tags / v2_0_0_prep_before_2001 / install / build.xml @ 43043
History | View | Annotate | Download (16.2 KB)
1 | 13281 | mhaloui | <?xml version="1.0" ?>
|
---|---|---|---|
2 | <project default="main"> |
||
3 | |||
4 | 13840 | jmvivo | |
5 | 13281 | mhaloui | <property file="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/build.number"/> |
6 | <import file="../binaries/ant/utilities.xml"/> |
||
7 | 13840 | jmvivo | <taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler" > |
8 | 13281 | mhaloui | <classpath>
|
9 | 13840 | jmvivo | <pathelement location="${ant.file.ant_libs.dir}/jarbundler-1.9.jar"/> |
10 | </classpath>
|
||
11 | 13281 | mhaloui | </taskdef>
|
12 | 13840 | jmvivo | |
13 | 13281 | mhaloui | <property file="build.properties"/> <!--COMPROBAR EXTENSIONES --> |
14 | <property name="DIR_LIN" location="./instalador-gvSIG-lin"/> |
||
15 | <property name="DIR_WIN" location="./instalador-gvSIG-win"/> |
||
16 | <property name="DIR_MAC" location="./instalador-gvSIG-mac"/> |
||
17 | 13840 | jmvivo | <property name="baseFileName" value="${APPNAME}-${bversion}-build_${build.number}"/> |
18 | <property name="LINUXBIN" value="${baseFileName}-linux-i586.bin"/> |
||
19 | <property name="LINUXBINWITHJRE" value="${baseFileName}-linux-i586-withjre.bin"/> |
||
20 | <property name="WINDOWSZIP" value="${baseFileName}-windows-i586.7z" /> |
||
21 | <property name="WINDOWSEXE" value="${baseFileName}-windows-i586.exe"/> |
||
22 | <property name="WINDOWSEXEWITHJRE" value="${baseFileName}-windows-i586-withjre.exe"/> |
||
23 | <property name="MAC_10_ZIP" value="${baseFileName}-mac-10_4.zip"/> |
||
24 | <property name="JARNAME" value="${APPNAME}-${bversion}-build_${build.number}.jar"/> |
||
25 | 13281 | mhaloui | <property name="INSTALLER_DIR" value="${APPNAME}-${version}_installer"/> |
26 | <property name="nombre_autoinstalador" value="gvSIG ${version} build ${build.number} autoinstalador"/> <!--OJO!!!! HAY QUE REVISAR ESTO --> |
||
27 | <property environment="env" /> |
||
28 | 13840 | jmvivo | |
29 | |||
30 | 13281 | mhaloui | <condition property="LAUNCHER7Z" value="./launcher/7z/7za" else="./launcher/7z/7z.exe"> |
31 | <os family="unix" /> |
||
32 | </condition>
|
||
33 | |||
34 | <condition property="Lang.Is.Spanish"> |
||
35 | <contains string="${env.LANG}" substring="es"/> |
||
36 | </condition>
|
||
37 | <condition property="directorio.base"> |
||
38 | <available file="../install" type="dir" /> |
||
39 | </condition>
|
||
40 | 13840 | jmvivo | |
41 | 13281 | mhaloui | <target name="E_Spanish" if="Lang.Is.Spanish"> |
42 | <property name="ERROR_BASEDIR" value="Este script debe invocarse desde el directorio install del workspace" /> |
||
43 | </target>
|
||
44 | 13840 | jmvivo | |
45 | 13281 | mhaloui | <target name="E_notSpanish" unless="Lang.Is.Spanish"> |
46 | <property name="ERROR_BASEDIR" value="This script must be run from the workspace\install's directory" /> |
||
47 | </target>
|
||
48 | 13840 | jmvivo | |
49 | 13281 | mhaloui | <target name="check" depends="E_Spanish,E_notSpanish"> |
50 | <fail message="${ERROR_BASEDIR}" unless="directorio.base"/> |
||
51 | </target>
|
||
52 | 13840 | jmvivo | |
53 | 13281 | mhaloui | <target name="main" depends="check,Linux,Windows,Mac" > |
54 | <echo message="DISTRIBUCION" /> |
||
55 | </target>
|
||
56 | <!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||
57 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||
58 | 13840 | jmvivo | -->
|
59 | 13281 | mhaloui | <target name="Linux" depends="check,CopyFilesLin,CopyExtLin,CreateJarLin,InstallationLin,cleanDirLIN"> |
60 | <echo> ********************************************* </echo> |
||
61 | <echo> ******** LINUX DONE *********</echo> |
||
62 | <echo> ********************************************* </echo> |
||
63 | </target>
|
||
64 | <target name="CopyFilesLin" description="Copia de ficheros LEEME y los jar y zip de _fwAndami/lib"> |
||
65 | <delete dir="${DIR_LIN}/bin"/> |
||
66 | 13840 | jmvivo | <mkdir dir="${DIR_LIN}/bin/gvSIG/extensiones"/> |
67 | 13281 | mhaloui | <!-- copiamos los fichers README LEEME y LLIG-ME, y gpl.txt -->
|
68 | |||
69 | <copy todir="${DIR_LIN}/bin"> |
||
70 | <fileset dir="${DIR_LIN}/installer_files"> |
||
71 | <include name="*"/> |
||
72 | <exclude name="*.*" /> |
||
73 | </fileset>
|
||
74 | </copy>
|
||
75 | <copy todir="${DIR_LIN}/bin" file="${DIR_LIN}/resources/gpl.txt"/> |
||
76 | 13840 | jmvivo | |
77 | <mkdir dir="${DIR_LIN}/bin/lib"/> |
||
78 | |||
79 | 13281 | mhaloui | <!-- copiamos los jar y zip que tenemos en _fwAndami/lib -->
|
80 | 13840 | jmvivo | <copy todir="${DIR_LIN}/bin/lib"> |
81 | <fileset dir="../_fwAndami/lib"> |
||
82 | <include name="*.jar"/> |
||
83 | <include name="*.zip"/> |
||
84 | 13281 | mhaloui | </fileset>
|
85 | </copy>
|
||
86 | 13840 | jmvivo | |
87 | 13281 | mhaloui | <copy todir="${DIR_LIN}/bin" file="../_fwAndami/andami.jar"/> |
88 | <copy todir="${DIR_LIN}/bin" file="../_fwAndami/castor.properties"/> |
||
89 | 13840 | jmvivo | |
90 | 14668 | jmvivo | <mkdir dir="${DIR_LIN}/bin/theme"/> |
91 | 15763 | jmvivo | <copy todir="${DIR_LIN}/bin/theme"> |
92 | 14668 | jmvivo | <fileset dir="../_fwAndami/theme"> |
93 | <include name="*"/> |
||
94 | </fileset>
|
||
95 | </copy>
|
||
96 | 13840 | jmvivo | |
97 | 14668 | jmvivo | |
98 | |||
99 | 13281 | mhaloui | </target>
|
100 | |||
101 | <target name="CopyExtLin" description="Copia de las extensiones" > |
||
102 | <!-- Estas extensiones se copian directamente al directorio destino, ya que no vamos a dar -->
|
||
103 | <!-- opcion a no instalarlas, son obligatorias. Los drivers de oracle no se deben copiar -->
|
||
104 | <for list="${MANDATORY_EXTENSIONS}" param="mandatory"> |
||
105 | <sequential>
|
||
106 | <copy todir="${DIR_LIN}/bin/gvSIG/extensiones/@{mandatory}"> |
||
107 | <fileset dir="../_fwAndami/gvSIG/extensiones/@{mandatory}"> |
||
108 | <exclude name="**/ojdbc*.jar"/> |
||
109 | <exclude name="**/gt2-oracle-spatial-*.jar"/> |
||
110 | <exclude name="**/sdoapi.jar"/> |
||
111 | </fileset>
|
||
112 | </copy>
|
||
113 | <echo>copiado @{mandatory}</echo> |
||
114 | </sequential>
|
||
115 | </for>
|
||
116 | 13840 | jmvivo | |
117 | 13281 | mhaloui | <delete dir="${DIR_LIN}/extensiones"/> |
118 | <mkdir dir="${DIR_LIN}/extensiones" /> |
||
119 | 13840 | jmvivo | |
120 | |||
121 | |||
122 | 13281 | mhaloui | <!-- Copiamos las demas extensiones, de nuevo sin copiar los drivers de oracle -->
|
123 | <for list="${EXTENSIONS}" param="extensions"> |
||
124 | <sequential>
|
||
125 | <copy todir="${DIR_LIN}/extensiones/@{extensions}"> |
||
126 | <fileset dir="../_fwAndami/gvSIG/extensiones/@{extensions}"> |
||
127 | <exclude name="**/ojdbc*.jar"/> |
||
128 | <exclude name="**/gt2-oracle-spatial-*.jar"/> |
||
129 | <exclude name="**/sdoapi.jar"/> |
||
130 | </fileset>
|
||
131 | </copy>
|
||
132 | <echo>extension--> @{extensions} </echo> |
||
133 | </sequential>
|
||
134 | </for>
|
||
135 | </target>
|
||
136 | 13840 | jmvivo | |
137 | 13281 | mhaloui | <target name="CreateJarLin" description="Generacion del instalador(jar) para Linux" > |
138 | <!-- Generamos el instalador (jar) para Linux -->
|
||
139 | <delete file="../${JARNAME}"/> |
||
140 | <ant dir="${DIR_LIN}"> |
||
141 | <property name="JARNAME" value="${JARNAME}"/> |
||
142 | <property name="GVSIG_VERSION" value="${version}"/> |
||
143 | <property name="APPNAME" value="${APPNAME}"/> |
||
144 | </ant>
|
||
145 | </target>
|
||
146 | <target name="InstallationLin" description="Generacion de la distribucion"> |
||
147 | <echo> ********************************************* </echo> |
||
148 | <echo> Buildnumber----> ${build.number} --- version--> ${version}</echo> |
||
149 | <echo> ********************************************* </echo> |
||
150 | 13840 | jmvivo | |
151 | 13281 | mhaloui | <!-- INSTALACION PARA LINUX -->
|
152 | <mkdir dir="${OUTPUT_DIR}" /> |
||
153 | <delete dir="${DIR_LIN}/${INSTALLER_DIR}"/> |
||
154 | <mkdir dir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall"/> |
||
155 | <move todir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall"> |
||
156 | <fileset file="./${JARNAME}"/> |
||
157 | </move>
|
||
158 | 13840 | jmvivo | |
159 | 13281 | mhaloui | <!-- carpetas CVS no se copiaran, ANT las excluye por defecto -->
|
160 | <copy todir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall"> |
||
161 | <fileset dir="./launcher/izpack-launcher-1.3_linux/dist"> |
||
162 | <exclude name="launcher.ini"/> |
||
163 | </fileset>
|
||
164 | </copy>
|
||
165 | <chmod file="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher-Linux" perm="ugo+rx"/> |
||
166 | 13840 | jmvivo | |
167 | 13281 | mhaloui | <copy file="${DIR_LIN}/resources/launcher.ini.j15" tofile="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini"/> |
168 | <replace file="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini" token="%JARNAME%" value="${JARNAME}"/> |
||
169 | 13840 | jmvivo | |
170 | 13281 | mhaloui | <!-- comprimimos la carpeta tmp_gvSIGInstall en tmp.tgz -->
|
171 | <tar destfile="${DIR_LIN}/${INSTALLER_DIR}/tmp.tgz" compression="gzip"> |
||
172 | <tarfileset dir="${DIR_LIN}/${INSTALLER_DIR}" mode="755" > |
||
173 | <include name="tmp_gvSIGInstall/launcher-Linux"/> |
||
174 | </tarfileset>
|
||
175 | <tarfileset dir="${DIR_LIN}/${INSTALLER_DIR}"> |
||
176 | <include name="tmp_gvSIGInstall/*"/> |
||
177 | <exclude name="tmp_gvSIGInstall/launcher-Linux"/> |
||
178 | </tarfileset>
|
||
179 | </tar>
|
||
180 | <!-- copiamos la jre y volvemos a comprimir en tmp_wjre.tgz -->
|
||
181 | <copy todir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall"> |
||
182 | <fileset file="${DIR_LIN}/jre/*-1_5_0_*.gz"/> |
||
183 | 13840 | jmvivo | </copy>
|
184 | 13281 | mhaloui | <tar destfile="${DIR_LIN}/${INSTALLER_DIR}/tmp_wjre.tgz" compression="gzip"> |
185 | <tarfileset dir="${DIR_LIN}/${INSTALLER_DIR}" mode="755" > |
||
186 | <include name="tmp_gvSIGInstall/launcher-Linux"/> |
||
187 | </tarfileset>
|
||
188 | <tarfileset dir="${DIR_LIN}/${INSTALLER_DIR}"> |
||
189 | <include name="tmp_gvSIGInstall/*"/> |
||
190 | <exclude name="tmp_gvSIGInstall/launcher-Linux"/> |
||
191 | </tarfileset>
|
||
192 | </tar>
|
||
193 | <echo message="#!/bin/sh${line.separator}" file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp" /> |
||
194 | <echo message="lcount=59${line.separator}" file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp" append="true" /> |
||
195 | <concat destfile="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}" binary="true" > |
||
196 | <fileset file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp"/> |
||
197 | <fileset file="./launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh"/> |
||
198 | <fileset file="${DIR_LIN}/${INSTALLER_DIR}/tmp.tgz"/> |
||
199 | </concat>
|
||
200 | <concat destfile="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBINWITHJRE}" binary="true" > |
||
201 | <fileset file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp"/> |
||
202 | <fileset file="./launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh"/> |
||
203 | <fileset file="${DIR_LIN}/${INSTALLER_DIR}/tmp_wjre.tgz"/> |
||
204 | </concat>
|
||
205 | <chmod file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}" perm="ugo+rx"/> |
||
206 | <chmod file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBINWITHJRE}" perm="ugo+rx"/> |
||
207 | <delete file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp"/> |
||
208 | <move todir="${OUTPUT_DIR}" > |
||
209 | <fileset file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}"/> |
||
210 | <fileset file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBINWITHJRE}"/> |
||
211 | </move>
|
||
212 | 13840 | jmvivo | <chmod file="${OUTPUT_DIR}/${LINUXBIN}" perm="ugo+rx"/> |
213 | <chmod file="${OUTPUT_DIR}/${LINUXBINWITHJRE}" perm="ugo+rx"/> |
||
214 | 13281 | mhaloui | <delete dir="${DIR_LIN}/${INSTALLER_DIR}"/> |
215 | </target>
|
||
216 | <target name="cleanDirLIN" description="Limpiamos los directorios DIR_LIN"> |
||
217 | <delete dir="${DIR_LIN}/extensiones" /> |
||
218 | <delete dir="${DIR_LIN}/bin" /> |
||
219 | 13840 | jmvivo | |
220 | </target>
|
||
221 | |||
222 | 13281 | mhaloui | <!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
223 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||
224 | -->
|
||
225 | <target name="Windows" depends="check,CopyFilesWin,CopyExtWin,CreateJarWin,InstallationWin,cleanDirWIN" > |
||
226 | <echo> ********************************************* </echo> |
||
227 | <echo> ******** WINDOWS DONE *********</echo> |
||
228 | <echo> ********************************************* </echo> |
||
229 | </target>
|
||
230 | <target name="CopyFilesWin" description="Copia de ficheros LEEME y los jar y zip de _fwAndami/lib" > |
||
231 | 13840 | jmvivo | |
232 | |||
233 | 13281 | mhaloui | <delete dir="${DIR_WIN}/bin"/> |
234 | 13840 | jmvivo | <mkdir dir="${DIR_WIN}/bin/gvSIG/extensiones"/> |
235 | 13281 | mhaloui | <copy todir="${DIR_WIN}/bin"> |
236 | <fileset dir="${DIR_WIN}/installer_files"> |
||
237 | <include name="*.txt"/> |
||
238 | </fileset>
|
||
239 | </copy>
|
||
240 | <copy todir="${DIR_WIN}/bin" file="${DIR_WIN}/resources/gpl.txt"/> |
||
241 | 13840 | jmvivo | |
242 | 13281 | mhaloui | <!-- copiamos los jar y zip que tenemos en _fwAndami/lib -->
|
243 | <copy todir="${DIR_WIN}/bin/lib"> |
||
244 | 13840 | jmvivo | <fileset dir="../_fwAndami/lib"> |
245 | <include name="*.jar"/> |
||
246 | <include name="*.zip"/> |
||
247 | 13281 | mhaloui | </fileset>
|
248 | </copy>
|
||
249 | 13840 | jmvivo | |
250 | 13281 | mhaloui | <copy todir="${DIR_WIN}/bin" file="../_fwAndami/andami.jar"/> |
251 | <copy todir="${DIR_WIN}/bin" file="../_fwAndami/castor.properties"/> |
||
252 | 13840 | jmvivo | |
253 | 15903 | jmvivo | <mkdir dir="${DIR_WIN}/bin/theme"/> |
254 | <copy todir="${DIR_WIN}/bin/theme"> |
||
255 | 14668 | jmvivo | <fileset dir="../_fwAndami/theme"> |
256 | <include name="*"/> |
||
257 | </fileset>
|
||
258 | </copy>
|
||
259 | |||
260 | |||
261 | 15763 | jmvivo | |
262 | 13281 | mhaloui | <delete dir="${DIR_WIN}/tmpResources"/> |
263 | <mkdir dir="${DIR_WIN}/tmpResources" /> |
||
264 | 13840 | jmvivo | |
265 | 13281 | mhaloui | <!-- Copiamos el lanzador y sus traduciones al tmpResources,sin copiar el ini, manifest y los CVS (ANT excluye carpetas CVS por defecto -->
|
266 | <copy todir="${DIR_WIN}/tmpResources"> |
||
267 | <fileset dir="./launcher/izpack-launcher-1.3/dist/"> |
||
268 | <include name="**/"/> |
||
269 | <exclude name="**/*.ini"/> |
||
270 | <exclude name="**/*.manifest"/> |
||
271 | </fileset>
|
||
272 | </copy>
|
||
273 | <move file="${DIR_WIN}/tmpResources/launcher-Win32.exe" tofile="${DIR_WIN}/tmpResources/gvSIG.exe"/> |
||
274 | <copy todir="${DIR_WIN}/tmpResources/jai_imageio-1_0_01-lib-windows/"> |
||
275 | <fileset dir="${DIR_WIN}/jre_installers_1.5/jai_imageio-1_0_01-lib-windows"/> |
||
276 | </copy>
|
||
277 | <copy file="${DIR_WIN}/resources/gvSIG.ini.J15" tofile="${DIR_WIN}/tmpResources/gvSIG.ini"/> |
||
278 | 13840 | jmvivo | |
279 | 13281 | mhaloui | </target>
|
280 | <target name="CopyExtWin" description="Copia de las extensiones" > |
||
281 | <!-- Estas extensiones se copian directamente al directorio destino, ya que no vamos a dar -->
|
||
282 | <!-- opcion a no instalarlas, son obligatorias. Los drivers de oracle no se deben copiar -->
|
||
283 | <for list="${MANDATORY_EXTENSIONS}" param="mandatory"> |
||
284 | <sequential>
|
||
285 | <copy todir="${DIR_WIN}/bin/gvSIG/extensiones/@{mandatory}"> |
||
286 | <fileset dir="../_fwAndami/gvSIG/extensiones/@{mandatory}"> |
||
287 | <exclude name="**/ojdbc*.jar"/> |
||
288 | <exclude name="**/gt2-oracle-spatial-*.jar"/> |
||
289 | <exclude name="**/sdoapi.jar"/> |
||
290 | </fileset>
|
||
291 | </copy>
|
||
292 | <echo>copiado @{mandatory}</echo> |
||
293 | </sequential>
|
||
294 | </for>
|
||
295 | 13840 | jmvivo | |
296 | 13281 | mhaloui | <delete dir="${DIR_WIN}/extensiones"/> |
297 | <mkdir dir="${DIR_WIN}/extensiones" /> |
||
298 | 13840 | jmvivo | |
299 | 13281 | mhaloui | <!-- Copiamos las demas extensiones, de nuevo sin copiar los drivers de oracle -->
|
300 | <for list="${EXTENSIONS}" param="extensions"> |
||
301 | <sequential>
|
||
302 | <copy todir="${DIR_WIN}/extensiones/@{extensions}"> |
||
303 | <fileset dir="../_fwAndami/gvSIG/extensiones/@{extensions}"> |
||
304 | <exclude name="**/ojdbc*.jar"/> |
||
305 | <exclude name="**/gt2-oracle-spatial-*.jar"/> |
||
306 | <exclude name="**/sdoapi.jar"/> |
||
307 | </fileset>
|
||
308 | </copy>
|
||
309 | <echo>extension--> @{extensions} </echo> |
||
310 | </sequential>
|
||
311 | </for>
|
||
312 | </target>
|
||
313 | <target name="CreateJarWin" description="Generacion del instalador(jar) para Windows" > |
||
314 | 13840 | jmvivo | |
315 | 13281 | mhaloui | <!-- Instalador para Windows -->
|
316 | 13840 | jmvivo | |
317 | 13281 | mhaloui | <echo> ********************************************* </echo> |
318 | <echo> Buildnumber----> ${build.number} --- version--> ${version}</echo> |
||
319 | 13840 | jmvivo | <echo> ********************************************* </echo> |
320 | 13281 | mhaloui | <delete file="./${JARNAME}"/> |
321 | <ant dir="${DIR_WIN}"> |
||
322 | <property name="JARNAME" value="${JARNAME}"/> |
||
323 | <property name="GVSIG_VERSION" value="${version}"/> |
||
324 | <property name="APPNAME" value="${APPNAME}"/> |
||
325 | 13840 | jmvivo | <property name="INSTALL_FILE" value="${DIR_WIN}/install_15.xml"/> |
326 | 13281 | mhaloui | </ant>
|
327 | 13840 | jmvivo | |
328 | 13281 | mhaloui | </target>
|
329 | <target name="InstallationWin" description="Generacion de la distribucion"> |
||
330 | 13840 | jmvivo | |
331 | 13281 | mhaloui | <delete dir="${DIR_WIN}/${INSTALLER_DIR}"/> |
332 | 13840 | jmvivo | |
333 | 13281 | mhaloui | <copy todir="${DIR_WIN}/${INSTALLER_DIR}"> |
334 | 13840 | jmvivo | |
335 | |||
336 | 13281 | mhaloui | <fileset dir="${DIR_WIN}/installer_files"> |
337 | <exclude name="install.bat"/> |
||
338 | </fileset>
|
||
339 | </copy>
|
||
340 | <copy todir="${DIR_WIN}/${INSTALLER_DIR}"> |
||
341 | <fileset dir="./launcher/izpack-launcher-1.3/dist"> |
||
342 | <exclude name="launcher-Win32.ini"/> |
||
343 | </fileset>
|
||
344 | </copy>
|
||
345 | <copy file="${DIR_WIN}/resources/launcher-Win32.ini.j15" tofile="${DIR_WIN}/${INSTALLER_DIR}/launcher-Win32.ini"/> |
||
346 | <replace file="${DIR_WIN}/${INSTALLER_DIR}/launcher-Win32.ini" token="%JARNAME%" value="${JARNAME}"/> |
||
347 | <move todir="${DIR_WIN}/${INSTALLER_DIR}/"> |
||
348 | <fileset file="./${JARNAME}"/> |
||
349 | </move>
|
||
350 | <delete file="${DIR_WIN}/${WINDOWSZIP}"/> |
||
351 | <exec executable="${LAUNCHER7Z}"> |
||
352 | <arg line="a -r ${DIR_WIN}/${WINDOWSZIP} ${DIR_WIN}/${INSTALLER_DIR}/*"/> |
||
353 | </exec>
|
||
354 | 13840 | jmvivo | |
355 | 13281 | mhaloui | <copy file="./launcher/7z/dist_config.txt" tofile="${DIR_WIN}/dist_config.txt"/> |
356 | <replace file="${DIR_WIN}/dist_config.txt" token="%TITLE%" value="gvSIG-${bversion}_${build.number}" /> |
||
357 | <concat destfile="${DIR_WIN}/${WINDOWSEXE}" binary="true"> |
||
358 | <fileset file="./launcher/7z/7zS.sfx"/> |
||
359 | <fileset file="${DIR_WIN}/dist_config.txt"/> |
||
360 | <fileset file="${DIR_WIN}/${WINDOWSZIP}"/> |
||
361 | </concat>
|
||
362 | <exec executable="${LAUNCHER7Z}"> |
||
363 | <arg line="a -r ${DIR_WIN}/${WINDOWSZIP} ${DIR_WIN}/jre_installers_1.5/*.exe"/> |
||
364 | </exec>
|
||
365 | <concat destfile="${DIR_WIN}/${WINDOWSEXEWITHJRE}" binary="true"> |
||
366 | <fileset file="./launcher/7z/7zS.sfx"/> |
||
367 | <fileset file="${DIR_WIN}/dist_config.txt"/> |
||
368 | <fileset file="${DIR_WIN}/${WINDOWSZIP}"/> |
||
369 | </concat>
|
||
370 | <move todir="${OUTPUT_DIR}" > |
||
371 | <fileset file="${DIR_WIN}/${WINDOWSEXE}"/> |
||
372 | <fileset file="${DIR_WIN}/${WINDOWSEXEWITHJRE}"/> |
||
373 | </move>
|
||
374 | <delete file="${DIR_WIN}/${WINDOWSZIP}" /> |
||
375 | <delete file="${DIR_WIN}/dist_config.txt" /> |
||
376 | <delete dir="${DIR_WIN}/${INSTALLER_DIR}" /> |
||
377 | <delete dir="${DIR_WIN}/tmpResources" /> |
||
378 | </target>
|
||
379 | <target name="cleanDirWIN" description="Limpiamos los directorios DIR_WIN"> |
||
380 | <delete dir="${DIR_WIN}/extensiones" /> |
||
381 | <delete dir="${DIR_WIN}/bin" /> |
||
382 | 13840 | jmvivo | |
383 | </target>
|
||
384 | |||
385 | 13281 | mhaloui | <!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
386 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||
387 | -->
|
||
388 | <target name="Mac"> |
||
389 | <mkdir dir="${OUTPUT_DIR}" /> |
||
390 | 17822 | jmvivo | <mkdir dir="${DIR_MAC}/tmp" /> |
391 | 13281 | mhaloui | <ant dir="${DIR_MAC}"> |
392 | <property name="build.number" value="${build.number}"/> |
||
393 | 17822 | jmvivo | <property name="DIR_DESTINO" location="${DIR_MAC}/tmp"/> |
394 | 13281 | mhaloui | </ant>
|
395 | 17822 | jmvivo | <zip destfile="${OUTPUT_DIR}/${MAC_10_ZIP}"> |
396 | 17938 | jmvivo | <zipfileset dir="${DIR_MAC}/tmp" |
397 | includes="*.app/**" |
||
398 | excludes="**/MacOS/*" |
||
399 | 17822 | jmvivo | />
|
400 | 17938 | jmvivo | <zipfileset dir="${DIR_MAC}/tmp" |
401 | includes="**/MacOS/*" |
||
402 | 17822 | jmvivo | filemode="755" |
403 | />
|
||
404 | 16056 | jmvivo | |
405 | 17822 | jmvivo | </zip>
|
406 | <delete dir="${DIR_MAC}/tmp"/> |
||
407 | 16056 | jmvivo | |
408 | |||
409 | 13281 | mhaloui | <echo> ********************************************* </echo> |
410 | <echo> ******** MAC DONE *********</echo> |
||
411 | <echo> ********************************************* </echo> |
||
412 | </target>
|
||
413 | </project> |