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