Statistics
| Revision:

root / tags / v1_9_Build_1223 / install / build.xml @ 29484

History | View | Annotate | Download (16.4 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 21301 jmvivo
                                <include name="tmp_gvSIGInstall/install_jre.sh"/>
175 13281 mhaloui
                        </tarfileset>
176
                        <tarfileset dir="${DIR_LIN}/${INSTALLER_DIR}">
177
                                <include name="tmp_gvSIGInstall/*"/>
178
                                <exclude name="tmp_gvSIGInstall/launcher-Linux"/>
179 21301 jmvivo
                                <exclude name="tmp_gvSIGInstall/install_jre.sh"/>
180 13281 mhaloui
                        </tarfileset>
181
                </tar>
182
<!--                 copiamos la jre y volvemos a comprimir en tmp_wjre.tgz -->
183
                <copy todir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall">
184
                        <fileset file="${DIR_LIN}/jre/*-1_5_0_*.gz"/>
185 13840 jmvivo
                </copy>
186 13281 mhaloui
                <tar destfile="${DIR_LIN}/${INSTALLER_DIR}/tmp_wjre.tgz" compression="gzip">
187
                        <tarfileset dir="${DIR_LIN}/${INSTALLER_DIR}" mode="755" >
188
                                <include name="tmp_gvSIGInstall/launcher-Linux"/>
189 21301 jmvivo
                                <include name="tmp_gvSIGInstall/install_jre.sh"/>
190 13281 mhaloui
                        </tarfileset>
191
                        <tarfileset dir="${DIR_LIN}/${INSTALLER_DIR}">
192
                                <include name="tmp_gvSIGInstall/*"/>
193
                                <exclude name="tmp_gvSIGInstall/launcher-Linux"/>
194 21301 jmvivo
                                <exclude name="tmp_gvSIGInstall/install_jre.sh"/>
195 13281 mhaloui
                        </tarfileset>
196
                </tar>
197
                <echo message="#!/bin/sh${line.separator}" file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp" />
198
                <echo message="lcount=59${line.separator}" file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp" append="true" />
199
                <concat destfile="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}" 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.tgz"/>
203
                </concat>
204
                <concat destfile="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBINWITHJRE}" binary="true" >
205
                        <fileset file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp"/>
206
                        <fileset file="./launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh"/>
207
                        <fileset file="${DIR_LIN}/${INSTALLER_DIR}/tmp_wjre.tgz"/>
208
                </concat>
209
                <chmod file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}" perm="ugo+rx"/>
210
                <chmod file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBINWITHJRE}" perm="ugo+rx"/>
211
                <delete file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp"/>
212
                <move todir="${OUTPUT_DIR}" >
213
                        <fileset file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}"/>
214
                        <fileset file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBINWITHJRE}"/>
215
                </move>
216 13840 jmvivo
                <chmod file="${OUTPUT_DIR}/${LINUXBIN}" perm="ugo+rx"/>
217
                <chmod file="${OUTPUT_DIR}/${LINUXBINWITHJRE}" perm="ugo+rx"/>
218 13281 mhaloui
                <delete dir="${DIR_LIN}/${INSTALLER_DIR}"/>
219
        </target>
220
        <target name="cleanDirLIN" description="Limpiamos los directorios DIR_LIN">
221
                <delete dir="${DIR_LIN}/extensiones" />
222
                <delete dir="${DIR_LIN}/bin" />
223 13840 jmvivo
224
        </target>
225
226 13281 mhaloui
        <!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
227
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
228
        -->
229
        <target name="Windows" depends="check,CopyFilesWin,CopyExtWin,CreateJarWin,InstallationWin,cleanDirWIN" >
230
                <echo> ********************************************* </echo>
231
                <echo> ********        WINDOWS DONE        *********</echo>
232
                <echo> ********************************************* </echo>
233
        </target>
234
        <target name="CopyFilesWin" description="Copia de ficheros LEEME y los jar y zip de _fwAndami/lib" >
235 13840 jmvivo
236
237 13281 mhaloui
                <delete dir="${DIR_WIN}/bin"/>
238 13840 jmvivo
                <mkdir dir="${DIR_WIN}/bin/gvSIG/extensiones"/>
239 13281 mhaloui
                <copy todir="${DIR_WIN}/bin">
240
                        <fileset dir="${DIR_WIN}/installer_files">
241
                                <include name="*.txt"/>
242
                        </fileset>
243
                </copy>
244
                <copy todir="${DIR_WIN}/bin" file="${DIR_WIN}/resources/gpl.txt"/>
245 13840 jmvivo
246 13281 mhaloui
                <!--                 copiamos los jar y zip que tenemos en _fwAndami/lib                 -->
247
                <copy todir="${DIR_WIN}/bin/lib">
248 13840 jmvivo
                        <fileset dir="../_fwAndami/lib">
249
                                <include name="*.jar"/>
250
                                <include name="*.zip"/>
251 13281 mhaloui
                        </fileset>
252
                </copy>
253 13840 jmvivo
254 13281 mhaloui
                <copy todir="${DIR_WIN}/bin" file="../_fwAndami/andami.jar"/>
255
                <copy todir="${DIR_WIN}/bin" file="../_fwAndami/castor.properties"/>
256 13840 jmvivo
257 15903 jmvivo
                <mkdir dir="${DIR_WIN}/bin/theme"/>
258
                <copy todir="${DIR_WIN}/bin/theme">
259 14668 jmvivo
                        <fileset dir="../_fwAndami/theme">
260
                                <include name="*"/>
261
                        </fileset>
262
                </copy>
263
264
265 15763 jmvivo
266 13281 mhaloui
                <delete dir="${DIR_WIN}/tmpResources"/>
267
                <mkdir dir="${DIR_WIN}/tmpResources" />
268 13840 jmvivo
269 13281 mhaloui
                <!--         Copiamos el lanzador y sus traduciones al tmpResources,sin copiar el ini, manifest y los CVS (ANT excluye carpetas CVS por defecto -->
270
                <copy todir="${DIR_WIN}/tmpResources">
271
                        <fileset dir="./launcher/izpack-launcher-1.3/dist/">
272
                                <include name="**/"/>
273
                                <exclude name="**/*.ini"/>
274
                                <exclude name="**/*.manifest"/>
275
                        </fileset>
276
                </copy>
277
                <move file="${DIR_WIN}/tmpResources/launcher-Win32.exe" tofile="${DIR_WIN}/tmpResources/gvSIG.exe"/>
278
                <copy todir="${DIR_WIN}/tmpResources/jai_imageio-1_0_01-lib-windows/">
279
                        <fileset dir="${DIR_WIN}/jre_installers_1.5/jai_imageio-1_0_01-lib-windows"/>
280
                </copy>
281
                <copy file="${DIR_WIN}/resources/gvSIG.ini.J15" tofile="${DIR_WIN}/tmpResources/gvSIG.ini"/>
282 13840 jmvivo
283 13281 mhaloui
        </target>
284
        <target name="CopyExtWin" description="Copia de las extensiones" >
285
                <!--          Estas extensiones se copian directamente al directorio destino, ya que no vamos a dar -->
286
                <!--     opcion a no instalarlas, son obligatorias. Los drivers de oracle no se deben copiar -->
287
                <for list="${MANDATORY_EXTENSIONS}" param="mandatory">
288
                        <sequential>
289
                                <copy todir="${DIR_WIN}/bin/gvSIG/extensiones/@{mandatory}">
290
                                        <fileset dir="../_fwAndami/gvSIG/extensiones/@{mandatory}">
291
                                                <exclude name="**/ojdbc*.jar"/>
292
                                                <exclude name="**/gt2-oracle-spatial-*.jar"/>
293
                                                <exclude name="**/sdoapi.jar"/>
294
                                        </fileset>
295
                                </copy>
296
                                <echo>copiado @{mandatory}</echo>
297
                        </sequential>
298
                </for>
299 13840 jmvivo
300 13281 mhaloui
                <delete dir="${DIR_WIN}/extensiones"/>
301
                <mkdir dir="${DIR_WIN}/extensiones" />
302 13840 jmvivo
303 13281 mhaloui
                <!--         Copiamos las demas extensiones, de nuevo sin copiar los drivers de oracle -->
304
                <for list="${EXTENSIONS}" param="extensions">
305
                        <sequential>
306
                                <copy todir="${DIR_WIN}/extensiones/@{extensions}">
307
                                        <fileset dir="../_fwAndami/gvSIG/extensiones/@{extensions}">
308
                                                <exclude name="**/ojdbc*.jar"/>
309
                                                <exclude name="**/gt2-oracle-spatial-*.jar"/>
310
                                                <exclude name="**/sdoapi.jar"/>
311
                                        </fileset>
312
                                </copy>
313
                                <echo>extension--> @{extensions} </echo>
314
                        </sequential>
315
                </for>
316
        </target>
317
        <target name="CreateJarWin" description="Generacion del instalador(jar) para Windows" >
318 13840 jmvivo
319 13281 mhaloui
        <!--         Instalador para Windows -->
320 13840 jmvivo
321 13281 mhaloui
                <echo> ********************************************* </echo>
322
                <echo> Buildnumber----> ${build.number} --- version--> ${version}</echo>
323 13840 jmvivo
                <echo> ********************************************* </echo>
324 13281 mhaloui
                <delete file="./${JARNAME}"/>
325
                <ant dir="${DIR_WIN}">
326
                        <property name="JARNAME" value="${JARNAME}"/>
327
                        <property name="GVSIG_VERSION" value="${version}"/>
328
                        <property name="APPNAME" value="${APPNAME}"/>
329 13840 jmvivo
                        <property name="INSTALL_FILE" value="${DIR_WIN}/install_15.xml"/>
330 13281 mhaloui
                </ant>
331 13840 jmvivo
332 13281 mhaloui
        </target>
333
        <target name="InstallationWin" description="Generacion de la distribucion">
334 13840 jmvivo
335 13281 mhaloui
                <delete dir="${DIR_WIN}/${INSTALLER_DIR}"/>
336 13840 jmvivo
337 13281 mhaloui
                <copy todir="${DIR_WIN}/${INSTALLER_DIR}">
338 13840 jmvivo
339
340 13281 mhaloui
                        <fileset dir="${DIR_WIN}/installer_files">
341
                                <exclude name="install.bat"/>
342
                        </fileset>
343
                </copy>
344
                <copy todir="${DIR_WIN}/${INSTALLER_DIR}">
345
                        <fileset dir="./launcher/izpack-launcher-1.3/dist">
346
                                <exclude name="launcher-Win32.ini"/>
347
                        </fileset>
348
                </copy>
349
                <copy file="${DIR_WIN}/resources/launcher-Win32.ini.j15" tofile="${DIR_WIN}/${INSTALLER_DIR}/launcher-Win32.ini"/>
350
                <replace file="${DIR_WIN}/${INSTALLER_DIR}/launcher-Win32.ini" token="%JARNAME%" value="${JARNAME}"/>
351
                <move todir="${DIR_WIN}/${INSTALLER_DIR}/">
352
                        <fileset file="./${JARNAME}"/>
353
                </move>
354
                <delete file="${DIR_WIN}/${WINDOWSZIP}"/>
355
                <exec executable="${LAUNCHER7Z}">
356
                        <arg line="a -r ${DIR_WIN}/${WINDOWSZIP} ${DIR_WIN}/${INSTALLER_DIR}/*"/>
357
                </exec>
358 13840 jmvivo
359 13281 mhaloui
                <copy file="./launcher/7z/dist_config.txt" tofile="${DIR_WIN}/dist_config.txt"/>
360
                <replace file="${DIR_WIN}/dist_config.txt" token="%TITLE%" value="gvSIG-${bversion}_${build.number}" />
361
                <concat destfile="${DIR_WIN}/${WINDOWSEXE}" binary="true">
362
                        <fileset file="./launcher/7z/7zS.sfx"/>
363
                        <fileset file="${DIR_WIN}/dist_config.txt"/>
364
                        <fileset file="${DIR_WIN}/${WINDOWSZIP}"/>
365
                </concat>
366
                <exec executable="${LAUNCHER7Z}">
367
                        <arg line="a -r ${DIR_WIN}/${WINDOWSZIP} ${DIR_WIN}/jre_installers_1.5/*.exe"/>
368
                </exec>
369
                <concat destfile="${DIR_WIN}/${WINDOWSEXEWITHJRE}" binary="true">
370
                        <fileset file="./launcher/7z/7zS.sfx"/>
371
                        <fileset file="${DIR_WIN}/dist_config.txt"/>
372
                        <fileset file="${DIR_WIN}/${WINDOWSZIP}"/>
373
                </concat>
374
                <move todir="${OUTPUT_DIR}" >
375
                        <fileset file="${DIR_WIN}/${WINDOWSEXE}"/>
376
                        <fileset file="${DIR_WIN}/${WINDOWSEXEWITHJRE}"/>
377
                </move>
378
                <delete file="${DIR_WIN}/${WINDOWSZIP}" />
379
                <delete file="${DIR_WIN}/dist_config.txt" />
380
                <delete dir="${DIR_WIN}/${INSTALLER_DIR}" />
381
                <delete dir="${DIR_WIN}/tmpResources" />
382
        </target>
383
        <target name="cleanDirWIN" description="Limpiamos los directorios DIR_WIN">
384
                <delete dir="${DIR_WIN}/extensiones" />
385
                <delete dir="${DIR_WIN}/bin" />
386 13840 jmvivo
387
        </target>
388
389 13281 mhaloui
        <!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
390
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
391
        -->
392
        <target name="Mac">
393
                <mkdir dir="${OUTPUT_DIR}" />
394 17822 jmvivo
              <mkdir dir="${DIR_MAC}/tmp" />
395 13281 mhaloui
                <ant dir="${DIR_MAC}">
396
                        <property name="build.number" value="${build.number}"/>
397 17822 jmvivo
                        <property name="DIR_DESTINO" location="${DIR_MAC}/tmp"/>
398 13281 mhaloui
                </ant>
399 17822 jmvivo
                <zip destfile="${OUTPUT_DIR}/${MAC_10_ZIP}">
400 17938 jmvivo
                        <zipfileset dir="${DIR_MAC}/tmp"
401
                                    includes="*.app/**"
402
                                    excludes="**/MacOS/*"
403 17822 jmvivo
                                    />
404 17938 jmvivo
                        <zipfileset dir="${DIR_MAC}/tmp"
405
                                    includes="**/MacOS/*"
406 17822 jmvivo
                                    filemode="755"
407
                                    />
408 16056 jmvivo
409 17822 jmvivo
                </zip>
410
                <delete dir="${DIR_MAC}/tmp"/>
411 16056 jmvivo
412
413 13281 mhaloui
                <echo> ********************************************* </echo>
414
                <echo> ********          MAC DONE        *********</echo>
415
                <echo> ********************************************* </echo>
416
        </target>
417
</project>