svn-gvsig-desktop / branches / v10 / install / CD_ROM / buildCD.xml @ 15907
History | View | Annotate | Download (4.09 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 name="OUTPUT_DIR" value="/tmp/versiones/v1.1.1_Build_${build.number}/"/> <!--Verificar ruta de instalables --> |
6 |
|
7 |
<propertyfile file="temp.properties"> |
8 |
<entry key="bversion" value="${version}"/> |
9 |
</propertyfile>
|
10 |
|
11 |
<property name="JRE_Zip" value="./JRE.zip"/> |
12 |
<property name="Extructure_Zip" value="./CD_extructure.zip"/> |
13 |
<property name="Andami" location="../../_fwAndami"/> |
14 |
<property name="base.dir" location="cd_gvSIG"/> |
15 |
<property name="nombreISO" value="gvSIG"/> |
16 |
<property name="Etiqueta" value="gvSIG-1_1_1_Build_${build.number}" /> |
17 |
|
18 |
<condition property="we.linux"> |
19 |
<os family="unix"/> |
20 |
</condition>
|
21 |
|
22 |
<target name="main" depends="FilesCopy,moveInstalables,makeISO"> <!-- el target makeInstalables no se realiza por defecto--> |
23 |
<delete file="temp.properties"/> |
24 |
<echo message="*******************************"/> |
25 |
<echo message="******* DONE ********"/> |
26 |
<echo message="*******************************"/> |
27 |
|
28 |
</target>
|
29 |
<target name="FilesCopy"> |
30 |
<!-- <delete dir="${base.dir}"/> --> <!--DE MOMENTO SE PUEDE IR BORRANDO EL DIRECTORIO MANUALMENTE--> |
31 |
<mkdir dir="${base.dir}"/> |
32 |
<unzip src="${JRE_Zip}" dest="${base.dir}"/> |
33 |
<unzip src="${Extructure_Zip}" dest="${base.dir}"/> |
34 |
<copy todir="${base.dir}/gvSIG/bin" file="${Andami}/andami.jar"/> |
35 |
<copy todir="${base.dir}/gvSIG/bin" file="${Andami}/castor.properties"/> |
36 |
<copy todir="${base.dir}/gvSIG/bin" file="${Andami}/schemas/andami-config.xml"/> |
37 |
|
38 |
<copy todir="${base.dir}/gvSIG/bin/lib" > |
39 |
<fileset dir="${Andami}/lib"/> |
40 |
</copy>
|
41 |
<copy todir="${base.dir}/gvSIG/bin/gvSIG" > |
42 |
<fileset dir="${Andami}/gvSIG"/> |
43 |
</copy>
|
44 |
<copy todir="${base.dir}/cachedir"> |
45 |
<fileset dir="${Andami}/cachedir"/> |
46 |
</copy>
|
47 |
|
48 |
<copy todir="${base.dir}/gvSIG/cachedir"> |
49 |
<fileset dir="${Andami}/cachedir"/> |
50 |
</copy>
|
51 |
<copy todir="${base.dir}/gvSIG/bin/cachedir"> |
52 |
<fileset dir="${Andami}/cachedir"/> |
53 |
</copy>
|
54 |
|
55 |
<replace file="temp.properties" token="." value="_"/> |
56 |
<property file="temp.properties"/> |
57 |
|
58 |
|
59 |
<move file="${base.dir}/r_0.txt" tofile="${base.dir}/r_${build.number}.txt"/> |
60 |
<replace file="${base.dir}/r_${build.number}.txt" token="%NUMBER%" value="${build.number}"/> |
61 |
<replace file="${base.dir}/autorun.inf" token="%VERSION%" value="${bversion}"/> |
62 |
<replace file="${base.dir}/autorun.inf" token="%BUILDNUMBER%" value="${build.number}"/> |
63 |
|
64 |
<replace file="${base.dir}/leeme.htm" token="%VERSION%" value="${bversion}"/> |
65 |
<replace file="${base.dir}/leeme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
66 |
|
67 |
<replace file="${base.dir}/readme.htm" token="%VERSION%" value="${bversion}"/> |
68 |
<replace file="${base.dir}/readme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
69 |
|
70 |
<copy todir="${base.dir}/gvSIG/JRE/windows/bin" overwrite="true"> |
71 |
<fileset dir="${base.dir}/gvSIG/libs-windows"/> |
72 |
</copy>
|
73 |
|
74 |
|
75 |
|
76 |
</target>
|
77 |
<target name="makeInstalables"> |
78 |
|
79 |
<ant antfile="build.xml" dir="../" /> <!--Esto de momento en el branch no se usa--> |
80 |
|
81 |
</target>
|
82 |
<target name="moveInstalables"> |
83 |
<!-- Se debe pensar si se mantienen esos instalabes que se acaban de generar o se borran -->
|
84 |
|
85 |
<copy todir="${base.dir}/instalar"> |
86 |
<fileset dir="${OUTPUT_DIR}"/> |
87 |
</copy>
|
88 |
|
89 |
<chmod dir="${base.dir}/instalar" perm="ugo+rx" |
90 |
includes="*.bin"/> |
91 |
<chmod dir="${base.dir}/gvSIG.sh" perm="ugo+rx" /> |
92 |
<chmod dir="${base.dir}/gvSIG/bin/gvSIG.sh" perm="ugo+rx" /> |
93 |
<chmod dir="${base.dir}/gvSIG/JRE/linux/bin/java" perm="ugo+rx" /> |
94 |
|
95 |
</target>
|
96 |
|
97 |
<target name="makeISO" depends="makeISO_LIN,makeISO_WIN"> |
98 |
<echo message="CD GENERATOR DONE" /> |
99 |
</target>
|
100 |
|
101 |
<target name="makeISO_LIN" if="we.linux"> |
102 |
<exec executable="mkisofs"> |
103 |
<arg line="-udf -r -J -T -hide-joliet-trans-tbl -hide-rr-moved -V ${Etiqueta} -o ${nombreISO}-${bversion}_Build_${build.number}.iso ${base.dir}"/> |
104 |
</exec>
|
105 |
|
106 |
</target>
|
107 |
|
108 |
<target name="makeISO_WIN" unless="we.linux"> |
109 |
<echo message="El sistema operativo no es Linux, se deberá generar un iso de la carpeta ${base.dir}"/> |
110 |
</target>
|
111 |
|
112 |
|
113 |
</project>
|