Statistics
| Revision:

svn-gvsig-desktop / tags / tmp_build / install / CD_ROM / buildCD.xml @ 16685

History | View | Annotate | Download (5.33 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_1_1_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}"/> --> <!--DE MOMENTO SE PUEDE IR BORRANDO EL DIRECTORIO MANUALMENTE-->
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/gvSIG" >
49
                        <fileset dir="${Andami}/gvSIG"/>
50
                </copy>
51
                <copy todir="${base.dir}/cachedir">
52
                        <fileset dir="${Andami}/cachedir"/>
53
                </copy>
54

    
55
                <copy todir="${base.dir}/gvSIG/cachedir">
56
                        <fileset dir="${Andami}/cachedir"/>
57
                </copy>
58
                <copy todir="${base.dir}/gvSIG/bin/cachedir">
59
                        <fileset dir="${Andami}/cachedir"/>
60
                </copy>
61

    
62

    
63
                <move file="${base.dir}/r_0.txt" tofile="${base.dir}/r_${build.number}.txt"/>
64

    
65
        </target>
66

    
67

    
68
        <target name="detectSRC" depends="withSRC,noSRC">
69
        </target>
70

    
71
        <target name="withSRC" if="src.present">
72
                <move file="${base.dir}/leeme_conSRC.htm" tofile="${base.dir}/leeme.htm"/>
73
                <move file="${base.dir}/readme_conSRC.htm" tofile="${base.dir}/readme.htm"/>
74
                <delete file="${base.dir}/leeme_sinSRC.htm"/>
75
                <delete file="${base.dir}/readme_sinSRC.htm"/>
76

    
77
        </target>
78

    
79
        <target name="noSRC" unless="src.present">
80
                <move file="${base.dir}/leeme_sinSRC.htm" tofile="${base.dir}/leeme.htm"/>
81
                <move file="${base.dir}/readme_sinSRC.htm" tofile="${base.dir}/readme.htm"/>
82
                <delete file="${base.dir}/leeme_conSRC.htm"/>
83
                <delete file="${base.dir}/readme_conSRC.htm"/>
84
        </target>
85

    
86
        <target name="FilesReplace">
87

    
88

    
89
                                <replace file="${base.dir}/r_${build.number}.txt" token="%VERSION%" value="${version}"/>
90
                                <replace file="${base.dir}/r_${build.number}.txt" token="%BVERSION%" value="${bversion}"/>
91
                                <replace file="${base.dir}/r_${build.number}.txt" token="%BUILDNUMBER%" value="${build.number}"/>
92

    
93
                                <replace file="${base.dir}/autorun.inf" token="%VERSION%" value="${bversion}"/>
94
                                <replace file="${base.dir}/autorun.inf" token="%BVERSION%" value="${bversion}"/>
95
                                <replace file="${base.dir}/autorun.inf" token="%BUILDNUMBER%" value="${build.number}"/>
96

    
97
                                <replace file="${base.dir}/leeme.htm" token="%VERSION%" value="${version}"/>
98
                                <replace file="${base.dir}/leeme.htm" token="%BVERSION%" value="${bversion}"/>
99
                                <replace file="${base.dir}/leeme.htm" token="%BUILDNUMBER%" value="${build.number}"/>
100

    
101
                                <replace file="${base.dir}/readme.htm" token="%VERSION%" value="${version}"/>
102
                                <replace file="${base.dir}/readme.htm" token="%BVERSION%" value="${bversion}"/>
103
                                <replace file="${base.dir}/readme.htm" token="%BUILDNUMBER%" value="${build.number}"/>
104

    
105

    
106
        </target>
107

    
108

    
109
        <target name="makeInstalables">
110

    
111
                <ant antfile="build.xml" dir="../" /> <!--Esto de momento en el branch no se usa-->
112

    
113
        </target>
114
        <target name="moveInstalables">
115
<!--                 Se debe pensar si se mantienen esos instalabes que se acaban de generar o se borran -->
116

    
117
                <copy todir="${base.dir}/instalar">
118
                        <fileset dir="${OUTPUT_DIR}" includes="*.bin,*.exe,*mac*.zip"/>
119
                </copy>
120

    
121
                <chmod dir="${base.dir}/instalar" perm="ugo+rx"
122
                       includes="*.bin"/>
123
                <chmod dir="${base.dir}/gvSIG.sh" perm="ugo+rx" />
124
                <chmod dir="${base.dir}/gvSIG/bin/gvSIG.sh" perm="ugo+rx" />
125
                <chmod dir="${base.dir}/gvSIG/JRE/linux/bin/java" perm="ugo+rx" />
126

    
127
        </target>
128

    
129
        <target name="makeISO" depends="makeISO_LIN,makeISO_WIN">
130
                <echo message="CD GENERATOR DONE" />
131
        </target>
132

    
133
        <target name="makeISO_LIN" if="we.linux">
134
                <exec executable="mkisofs">
135
                        <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
                </exec>
137

    
138
        </target>
139

    
140
        <target name="makeISO_WIN" unless="we.linux">
141
                <echo message="El sistema operativo no es Linux, se deberá generar un iso de la carpeta ${base.dir}"/>
142
        </target>
143

    
144

    
145
</project>