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