svn-gvsig-desktop / tags / tmp_build / install / CD_ROM / buildCD.xml @ 16412
History | View | Annotate | Download (5.85 KB)
1 |
<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 |
<property file="../build.properties" prefix="install."/> |
6 |
<property name="OUTPUT_DIR" value="${install.OUTPUT_DIR}"/> |
7 |
|
8 |
<propertyfile file="temp.properties"> |
9 |
<entry key="bversion" value="${version}"/> |
10 |
</propertyfile>
|
11 |
|
12 |
<property name="JRE_Zip" value="./JRE.zip"/> |
13 |
<property name="Extructure_Zip" value="./CD_extructure.zip"/> |
14 |
<property name="Andami" location="../../_fwAndami"/> |
15 |
<property name="binaries" location="../../binaries"/> |
16 |
<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 |
|
20 |
<replace file="temp.properties" token="." value="_"/> |
21 |
<property file="temp.properties"/> |
22 |
|
23 |
<available file="${OUTPUT_DIR}/gvSIG-${bversion}-src.zip" property="src.present"/> <!--Verificar que los fuentes esten con los instalables --> |
24 |
|
25 |
<condition property="we.linux"> |
26 |
<os family="unix"/> |
27 |
</condition>
|
28 |
|
29 |
<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 |
|
35 |
</target>
|
36 |
<target name="FilesCopy"> |
37 |
<delete dir="${base.dir}" failonerror="false"/> |
38 |
<mkdir dir="${base.dir}"/> |
39 |
<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 |
|
45 |
<copy todir="${base.dir}/gvSIG/bin/lib" > |
46 |
<fileset dir="${Andami}/lib"/> |
47 |
</copy>
|
48 |
<copy todir="${base.dir}/gvSIG/bin/theme" > |
49 |
<fileset dir="${Andami}/theme"/> |
50 |
</copy>
|
51 |
<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 |
|
58 |
<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 |
|
65 |
|
66 |
|
67 |
<move file="${base.dir}/r_0.txt" tofile="${base.dir}/r_${build.number}.txt"/> |
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 |
|
78 |
<copy todir="${base.dir}/gvSIG/JRE/windows/bin" overwrite="true"> |
79 |
<fileset dir="${base.dir}/gvSIG/libs-windows"/> |
80 |
</copy>
|
81 |
|
82 |
<!-- updating so ??-->
|
83 |
|
84 |
|
85 |
</target>
|
86 |
|
87 |
<target name="detectSRC" depends="withSRC,noSRC"> |
88 |
</target>
|
89 |
|
90 |
<target name="withSRC" if="src.present"> |
91 |
<move file="${base.dir}/leeme_conSRC.htm" tofile="${base.dir}/leeme.htm"/> |
92 |
<move file="${base.dir}/readme_conSRC.htm" tofile="${base.dir}/readme.htm"/> |
93 |
<delete file="${base.dir}/leeme_sinSRC.htm"/> |
94 |
<delete file="${base.dir}/readme_sinSRC.htm"/> |
95 |
|
96 |
</target>
|
97 |
|
98 |
<target name="noSRC" unless="src.present"> |
99 |
<move file="${base.dir}/leeme_sinSRC.htm" tofile="${base.dir}/leeme.htm"/> |
100 |
<move file="${base.dir}/readme_sinSRC.htm" tofile="${base.dir}/readme.htm"/> |
101 |
<delete file="${base.dir}/leeme_conSRC.htm"/> |
102 |
<delete file="${base.dir}/readme_conSRC.htm"/> |
103 |
</target>
|
104 |
|
105 |
<target name="FilesReplace"> |
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 |
|
112 |
<replace file="${base.dir}/autorun.inf" token="%VERSION%" value="${bversion}"/> |
113 |
<replace file="${base.dir}/autorun.inf" token="%BVERSION%" value="${bversion}"/> |
114 |
<replace file="${base.dir}/autorun.inf" token="%BUILDNUMBER%" value="${build.number}"/> |
115 |
|
116 |
<replace file="${base.dir}/leeme.htm" token="%VERSION%" value="${version}"/> |
117 |
<replace file="${base.dir}/leeme.htm" token="%BVERSION%" value="${bversion}"/> |
118 |
<replace file="${base.dir}/leeme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
119 |
|
120 |
<replace file="${base.dir}/readme.htm" token="%VERSION%" value="${version}"/> |
121 |
<replace file="${base.dir}/readme.htm" token="%BVERSION%" value="${bversion}"/> |
122 |
<replace file="${base.dir}/readme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
123 |
|
124 |
|
125 |
</target>
|
126 |
|
127 |
<target name="makeInstalables"> |
128 |
|
129 |
<ant antfile="build.xml" dir="../" /> <!--Esto de momento en el branch no se usa--> |
130 |
|
131 |
</target>
|
132 |
<target name="moveInstalables"> |
133 |
<!-- Se debe pensar si se mantienen esos instalabes que se acaban de generar o se borran -->
|
134 |
|
135 |
<copy todir="${base.dir}/instalar"> |
136 |
<fileset dir="${OUTPUT_DIR}" includes="*.bin,*.exe,*mac*.zip"/> |
137 |
</copy>
|
138 |
|
139 |
<chmod dir="${base.dir}/instalar" perm="ugo+rx" |
140 |
includes="*.bin"/> |
141 |
<chmod dir="${base.dir}/gvSIG.sh" perm="ugo+rx" /> |
142 |
<chmod dir="${base.dir}/gvSIG/bin/gvSIG.sh" perm="ugo+rx" /> |
143 |
<chmod dir="${base.dir}/gvSIG/JRE/linux/bin/java" perm="ugo+rx" /> |
144 |
|
145 |
</target>
|
146 |
|
147 |
<target name="makeISO" depends="makeISO_LIN,makeISO_WIN"> |
148 |
<echo message="CD GENERATOR DONE" /> |
149 |
</target>
|
150 |
|
151 |
<target name="makeISO_LIN" if="we.linux"> |
152 |
<exec executable="mkisofs"> |
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}"/> |
154 |
</exec>
|
155 |
|
156 |
</target>
|
157 |
|
158 |
<target name="makeISO_WIN" unless="we.linux"> |
159 |
<echo message="El sistema operativo no es Linux, se deberá generar un iso de la carpeta ${base.dir}"/> |
160 |
</target>
|
161 |
|
162 |
|
163 |
</project>
|