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