svn-gvsig-desktop / tags / v1_9_Build_1237 / install / CD_ROM / buildCD.xml @ 43747
History | View | Annotate | Download (5.7 KB)
1 | 16288 | mhaloui | <project name="CD_gvSIG" default="main"> |
---|---|---|---|
2 | |||
3 | <property file="buildCD.properties"/> |
||
4 | <property file="../../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/build.number"/> |
||
5 | 16425 | jmvivo | <property file="../build.properties" prefix="install."/> |
6 | <property name="OUTPUT_DIR" value="${install.OUTPUT_DIR}"/> |
||
7 | |||
8 | 16288 | mhaloui | <propertyfile file="temp.properties"> |
9 | <entry key="bversion" value="${version}"/> |
||
10 | </propertyfile>
|
||
11 | 16425 | jmvivo | |
12 | 16288 | mhaloui | <property name="JRE_Zip" value="./JRE.zip"/> |
13 | <property name="Extructure_Zip" value="./CD_extructure.zip"/> |
||
14 | <property name="Andami" location="../../_fwAndami"/> |
||
15 | 16425 | jmvivo | <property name="binaries" location="../../binaries"/> |
16 | 16288 | mhaloui | <property name="base.dir" location="cd_gvSIG"/> |
17 | <property name="nombreISO" value="gvSIG"/> |
||
18 | <property name="Etiqueta" value="gvSIG-1_2_Build_${build.number}" /> |
||
19 | 16425 | jmvivo | |
20 | 16288 | mhaloui | <replace file="temp.properties" token="." value="_"/> |
21 | <property file="temp.properties"/> |
||
22 | 16425 | jmvivo | |
23 | 16289 | mhaloui | <available file="${OUTPUT_DIR}/gvSIG-${bversion}-src.zip" property="src.present"/> <!--Verificar que los fuentes esten con los instalables --> |
24 | 16425 | jmvivo | |
25 | 16288 | mhaloui | <condition property="we.linux"> |
26 | <os family="unix"/> |
||
27 | </condition>
|
||
28 | 16425 | jmvivo | |
29 | 16288 | mhaloui | <target name="main" depends="FilesCopy,detectSRC,FilesReplace,moveInstalables,makeISO"> <!-- el target makeInstalables no se realiza por defecto--> |
30 | <delete file="temp.properties"/> |
||
31 | <echo message="*******************************"/> |
||
32 | <echo message="******* DONE ********"/> |
||
33 | <echo message="*******************************"/> |
||
34 | 16425 | jmvivo | |
35 | 16288 | mhaloui | </target>
|
36 | <target name="FilesCopy"> |
||
37 | 16296 | mhaloui | <delete dir="${base.dir}" failonerror="false"/> |
38 | 16425 | jmvivo | <mkdir dir="${base.dir}"/> |
39 | 16288 | mhaloui | <unzip src="${JRE_Zip}" dest="${base.dir}"/> |
40 | <unzip src="${Extructure_Zip}" dest="${base.dir}"/> |
||
41 | <copy todir="${base.dir}/gvSIG/bin" file="${Andami}/andami.jar"/> |
||
42 | <copy todir="${base.dir}/gvSIG/bin" file="${Andami}/castor.properties"/> |
||
43 | <copy todir="${base.dir}/gvSIG/bin" file="${Andami}/schemas/andami-config.xml"/> |
||
44 | 16425 | jmvivo | |
45 | 16288 | mhaloui | <copy todir="${base.dir}/gvSIG/bin/lib" > |
46 | <fileset dir="${Andami}/lib"/> |
||
47 | </copy>
|
||
48 | 16296 | mhaloui | <copy todir="${base.dir}/gvSIG/bin/theme" > |
49 | <fileset dir="${Andami}/theme"/> |
||
50 | </copy>
|
||
51 | 16288 | mhaloui | <copy todir="${base.dir}/gvSIG/bin/gvSIG" > |
52 | <fileset dir="${Andami}/gvSIG"/> |
||
53 | </copy>
|
||
54 | <copy todir="${base.dir}/cachedir"> |
||
55 | <fileset dir="${Andami}/cachedir"/> |
||
56 | </copy>
|
||
57 | 16425 | jmvivo | |
58 | 16288 | mhaloui | <copy todir="${base.dir}/gvSIG/cachedir"> |
59 | <fileset dir="${Andami}/cachedir"/> |
||
60 | </copy>
|
||
61 | <copy todir="${base.dir}/gvSIG/bin/cachedir"> |
||
62 | <fileset dir="${Andami}/cachedir"/> |
||
63 | </copy>
|
||
64 | 16425 | jmvivo | |
65 | |||
66 | |||
67 | 16288 | mhaloui | <move file="${base.dir}/r_0.txt" tofile="${base.dir}/r_${build.number}.txt"/> |
68 | 16425 | jmvivo | |
69 | <!-- updating dlls -->
|
||
70 | |||
71 | 17447 | jmvivo | <copy todir="${base.dir}/gvSIG/JRE/windows/bin" overwrite="true"> |
72 | 16425 | jmvivo | <fileset dir="${binaries}/w32/3D" includes="*.dll,**/*.dll"/> |
73 | <fileset dir="${binaries}/w32/crs" includes="*.dll"/> |
||
74 | <fileset dir="${binaries}/w32/raster" includes="*.dll"/> |
||
75 | <fileset dir="${binaries}/w32/system" includes="*.dll"/> |
||
76 | </copy>
|
||
77 | |||
78 | |||
79 | |||
80 | 16288 | mhaloui | </target>
|
81 | 16425 | jmvivo | |
82 | 16288 | mhaloui | <target name="detectSRC" depends="withSRC,noSRC"> |
83 | </target>
|
||
84 | 16425 | jmvivo | |
85 | 16288 | mhaloui | <target name="withSRC" if="src.present"> |
86 | 16425 | jmvivo | <move file="${base.dir}/leeme_conSRC.htm" tofile="${base.dir}/leeme.htm"/> |
87 | 16288 | mhaloui | <move file="${base.dir}/readme_conSRC.htm" tofile="${base.dir}/readme.htm"/> |
88 | <delete file="${base.dir}/leeme_sinSRC.htm"/> |
||
89 | <delete file="${base.dir}/readme_sinSRC.htm"/> |
||
90 | 16425 | jmvivo | |
91 | 16288 | mhaloui | </target>
|
92 | 16425 | jmvivo | |
93 | 16288 | mhaloui | <target name="noSRC" unless="src.present"> |
94 | 16425 | jmvivo | <move file="${base.dir}/leeme_sinSRC.htm" tofile="${base.dir}/leeme.htm"/> |
95 | 16288 | mhaloui | <move file="${base.dir}/readme_sinSRC.htm" tofile="${base.dir}/readme.htm"/> |
96 | <delete file="${base.dir}/leeme_conSRC.htm"/> |
||
97 | <delete file="${base.dir}/readme_conSRC.htm"/> |
||
98 | </target>
|
||
99 | 16425 | jmvivo | |
100 | 16288 | mhaloui | <target name="FilesReplace"> |
101 | 16425 | jmvivo | |
102 | |||
103 | <replace file="${base.dir}/r_${build.number}.txt" token="%VERSION%" value="${version}"/> |
||
104 | <replace file="${base.dir}/r_${build.number}.txt" token="%BVERSION%" value="${bversion}"/> |
||
105 | <replace file="${base.dir}/r_${build.number}.txt" token="%BUILDNUMBER%" value="${build.number}"/> |
||
106 | |||
107 | 16288 | mhaloui | <replace file="${base.dir}/autorun.inf" token="%VERSION%" value="${bversion}"/> |
108 | 16425 | jmvivo | <replace file="${base.dir}/autorun.inf" token="%BVERSION%" value="${bversion}"/> |
109 | 16288 | mhaloui | <replace file="${base.dir}/autorun.inf" token="%BUILDNUMBER%" value="${build.number}"/> |
110 | 16425 | jmvivo | |
111 | 16288 | mhaloui | <replace file="${base.dir}/leeme.htm" token="%VERSION%" value="${version}"/> |
112 | <replace file="${base.dir}/leeme.htm" token="%BVERSION%" value="${bversion}"/> |
||
113 | <replace file="${base.dir}/leeme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
||
114 | 16425 | jmvivo | |
115 | 16288 | mhaloui | <replace file="${base.dir}/readme.htm" token="%VERSION%" value="${version}"/> |
116 | <replace file="${base.dir}/readme.htm" token="%BVERSION%" value="${bversion}"/> |
||
117 | <replace file="${base.dir}/readme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
||
118 | 16425 | jmvivo | |
119 | |||
120 | 16288 | mhaloui | </target>
|
121 | 16425 | jmvivo | |
122 | 16288 | mhaloui | <target name="makeInstalables"> |
123 | 16425 | jmvivo | |
124 | 16288 | mhaloui | <ant antfile="build.xml" dir="../" /> <!--Esto de momento en el branch no se usa--> |
125 | 16425 | jmvivo | |
126 | 16288 | mhaloui | </target>
|
127 | <target name="moveInstalables"> |
||
128 | <!-- Se debe pensar si se mantienen esos instalabes que se acaban de generar o se borran -->
|
||
129 | 16425 | jmvivo | |
130 | 16288 | mhaloui | <copy todir="${base.dir}/instalar"> |
131 | 16425 | jmvivo | <fileset dir="${OUTPUT_DIR}" includes="*.bin,*.exe,*mac*.zip"/> |
132 | 16288 | mhaloui | </copy>
|
133 | 16425 | jmvivo | |
134 | <chmod dir="${base.dir}/instalar" perm="ugo+rx" |
||
135 | 16288 | mhaloui | includes="*.bin"/> |
136 | <chmod dir="${base.dir}/gvSIG.sh" perm="ugo+rx" /> |
||
137 | <chmod dir="${base.dir}/gvSIG/bin/gvSIG.sh" perm="ugo+rx" /> |
||
138 | <chmod dir="${base.dir}/gvSIG/JRE/linux/bin/java" perm="ugo+rx" /> |
||
139 | 16425 | jmvivo | |
140 | 16288 | mhaloui | </target>
|
141 | 16425 | jmvivo | |
142 | 16288 | mhaloui | <target name="makeISO" depends="makeISO_LIN,makeISO_WIN"> |
143 | <echo message="CD GENERATOR DONE" /> |
||
144 | </target>
|
||
145 | 16425 | jmvivo | |
146 | 16288 | mhaloui | <target name="makeISO_LIN" if="we.linux"> |
147 | <exec executable="mkisofs"> |
||
148 | <arg line="-udf -r -J -T -hide-joliet-trans-tbl -hide-rr-moved -V ${Etiqueta} -o ${nombreISO}-${bversion}_Build_${build.number}.iso ${base.dir}"/> |
||
149 | </exec>
|
||
150 | 16425 | jmvivo | |
151 | 16288 | mhaloui | </target>
|
152 | 16425 | jmvivo | |
153 | 16288 | mhaloui | <target name="makeISO_WIN" unless="we.linux"> |
154 | <echo message="El sistema operativo no es Linux, se deberá generar un iso de la carpeta ${base.dir}"/> |
||
155 | </target>
|
||
156 | 16425 | jmvivo | |
157 | |||
158 | 16288 | mhaloui | </project> |