root / tags / v2_0_0_Build_2001 / install / CD_ROM / buildCD.xml @ 38471
History | View | Annotate | Download (5.7 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/JRE/windows/bin" 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 |
|
79 |
|
80 |
</target>
|
81 |
|
82 |
<target name="detectSRC" depends="withSRC,noSRC"> |
83 |
</target>
|
84 |
|
85 |
<target name="withSRC" if="src.present"> |
86 |
<move file="${base.dir}/leeme_conSRC.htm" tofile="${base.dir}/leeme.htm"/> |
87 |
<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 |
|
91 |
</target>
|
92 |
|
93 |
<target name="noSRC" unless="src.present"> |
94 |
<move file="${base.dir}/leeme_sinSRC.htm" tofile="${base.dir}/leeme.htm"/> |
95 |
<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 |
|
100 |
<target name="FilesReplace"> |
101 |
|
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 |
<replace file="${base.dir}/autorun.inf" token="%VERSION%" value="${bversion}"/> |
108 |
<replace file="${base.dir}/autorun.inf" token="%BVERSION%" value="${bversion}"/> |
109 |
<replace file="${base.dir}/autorun.inf" token="%BUILDNUMBER%" value="${build.number}"/> |
110 |
|
111 |
<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 |
|
115 |
<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 |
|
119 |
|
120 |
</target>
|
121 |
|
122 |
<target name="makeInstalables"> |
123 |
|
124 |
<ant antfile="build.xml" dir="../" /> <!--Esto de momento en el branch no se usa--> |
125 |
|
126 |
</target>
|
127 |
<target name="moveInstalables"> |
128 |
<!-- Se debe pensar si se mantienen esos instalabes que se acaban de generar o se borran -->
|
129 |
|
130 |
<copy todir="${base.dir}/instalar"> |
131 |
<fileset dir="${OUTPUT_DIR}" includes="*.bin,*.exe,*mac*.zip"/> |
132 |
</copy>
|
133 |
|
134 |
<chmod dir="${base.dir}/instalar" perm="ugo+rx" |
135 |
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 |
|
140 |
</target>
|
141 |
|
142 |
<target name="makeISO" depends="makeISO_LIN,makeISO_WIN"> |
143 |
<echo message="CD GENERATOR DONE" /> |
144 |
</target>
|
145 |
|
146 |
<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 |
|
151 |
</target>
|
152 |
|
153 |
<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 |
|
157 |
|
158 |
</project>
|