Revision 21675 trunk/extensions/ext3Dgui/distribution/build.xml
build.xml | ||
---|---|---|
4 | 4 |
|
5 | 5 |
<property file="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/build.number" /> |
6 | 6 |
|
7 |
<property file="build.properties" />
|
|
7 |
<!--property file="/distribution/build.properties" /-->
|
|
8 | 8 |
<!--COMPROBAR EXTENSIONES --> |
9 |
<property name="DIR_LIN" location="./linux-distribution" /> |
|
10 |
<property name="DIR_WIN" location="./win-distribution" /> |
|
9 |
<property name="version" value="1.0" /> |
|
10 |
<property name="bversion" value="1.0" /> |
|
11 |
<property name="APPNAME" value="3D_Extension" /> |
|
12 |
<property name="OUTPUT_DIR" location="./target/installers" /> |
|
13 |
|
|
14 |
|
|
15 |
<property name="DIR_LIN" location="./distribution/linux-distribution" /> |
|
16 |
<property name="DIR_WIN" location="./distribution/win-distribution" /> |
|
11 | 17 |
<property name="DIR_MAC" location="./mac-distribution" /> |
12 | 18 |
<property name="baseFileName" value="${APPNAME}-${bversion}" /> |
13 | 19 |
<property name="LINUXBIN" value="${baseFileName}-linux-i586.bin" /> |
... | ... | |
23 | 29 |
<property environment="env" /> |
24 | 30 |
|
25 | 31 |
|
26 |
<condition property="LAUNCHER7Z" value="../../build/distribution/launcher/7z/7za" else="../../build/distribution/launcher/7z/7z.exe">
|
|
32 |
<condition property="LAUNCHER7Z" value="../build/distribution/launcher/7z/7za" else="../build/distribution/launcher/7z/7z.exe">
|
|
27 | 33 |
<os family="unix" /> |
28 | 34 |
</condition> |
29 | 35 |
|
... | ... | |
46 | 52 |
<fail message="${ERROR_BASEDIR}" unless="directorio.base" /> |
47 | 53 |
</target> |
48 | 54 |
|
49 |
<!-- target name="main" depends="check,Linux,Windows,Mac" -->
|
|
50 |
<target name="main" depends="check,Linux,Windows">
|
|
55 |
<!-- target name="main" depends="Linux,Windows" -->
|
|
56 |
<target name="main" depends="Linux,Windows"> |
|
51 | 57 |
<echo message="DISTRIBUCION" /> |
52 | 58 |
</target> |
53 | 59 |
<!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
54 | 60 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
55 | 61 |
--> |
56 |
<target name="Linux" depends="check,CreateJarLin,InstallationLin,cleanDirLIN">
|
|
62 |
<target name="Linux" depends="CreateJarLin,InstallationLin,cleanDirLIN"> |
|
57 | 63 |
<echo> ********************************************* </echo> |
58 | 64 |
<echo> ******** LINUX DONE *********</echo> |
59 | 65 |
<echo> ********************************************* </echo> |
... | ... | |
63 | 69 |
<!-- Generamos el instalador (jar) para Linux --> |
64 | 70 |
<delete file="../${JARNAME}" /> |
65 | 71 |
<ant dir="${DIR_LIN}"> |
66 |
<property name="JARNAME" value="${JARNAME}-win" />
|
|
72 |
<property name="JARNAME" value="${JARNAME}" /> |
|
67 | 73 |
<property name="GVSIG_VERSION" value="${version}" /> |
68 | 74 |
<property name="APPNAME" value="${APPNAME}" /> |
69 | 75 |
</ant> |
... | ... | |
74 | 80 |
<echo> ********************************************* </echo> |
75 | 81 |
|
76 | 82 |
<!-- INSTALACION PARA LINUX --> |
77 |
<mkdir dir="${OUTPUT_DIR}" /> |
|
78 | 83 |
<delete dir="${DIR_LIN}/${INSTALLER_DIR}" /> |
79 | 84 |
<mkdir dir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall" /> |
80 | 85 |
<move todir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall"> |
... | ... | |
83 | 88 |
|
84 | 89 |
<!-- carpetas CVS no se copiaran, ANT las excluye por defecto --> |
85 | 90 |
<copy todir="${DIR_LIN}/${INSTALLER_DIR}/tmp_gvSIGInstall"> |
86 |
<fileset dir="./launcher/izpack-launcher-1.3_linux/dist"> |
|
91 |
<fileset dir="../build/distribution/launcher/izpack-launcher-1.3_linux/dist">
|
|
87 | 92 |
<exclude name="launcher.ini" /> |
88 | 93 |
</fileset> |
89 | 94 |
</copy> |
... | ... | |
107 | 112 |
<fixcrlf srcdir="${DIR_LIN}/${INSTALLER_DIR}/" includes="**/xx.tmp" eol="lf" eof="remove" /> |
108 | 113 |
<concat destfile="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}" binary="true"> |
109 | 114 |
<fileset file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp" /> |
110 |
<fileset file="./launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh" /> |
|
115 |
<fileset file="../build/distribution/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh" />
|
|
111 | 116 |
<fileset file="${DIR_LIN}/${INSTALLER_DIR}/tmp.tgz" /> |
112 | 117 |
</concat> |
113 | 118 |
<chmod file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}" perm="ugo+rx" /> |
119 |
|
|
120 |
</target> |
|
121 |
<target name="cleanDirLIN" description="Limpiamos los directorios DIR_LIN"> |
|
122 |
|
|
114 | 123 |
<delete file="${DIR_LIN}/${INSTALLER_DIR}/xx.tmp" /> |
115 |
<move todir="${OUTPUT_DIR}"> |
|
124 |
<mkdir dir="${OUTPUT_DIR}" /> |
|
125 |
<mkdir dir="${OUTPUT_DIR}/linux" /> |
|
126 |
<move todir="${OUTPUT_DIR}/linux"> |
|
116 | 127 |
<fileset file="${DIR_LIN}/${INSTALLER_DIR}/${LINUXBIN}" /> |
117 | 128 |
</move> |
118 |
<chmod file="${OUTPUT_DIR}/${LINUXBIN}" perm="ugo+rx" /> |
|
129 |
<chmod file="${OUTPUT_DIR}/linux/${LINUXBIN}" perm="ugo+rx" />
|
|
119 | 130 |
<delete dir="${DIR_LIN}/${INSTALLER_DIR}" /> |
120 |
</target> |
|
121 |
<target name="cleanDirLIN" description="Limpiamos los directorios DIR_LIN"> |
|
122 |
<delete dir="${DIR_LIN}/extensiones" /> |
|
123 |
<delete dir="${DIR_LIN}/bin" /> |
|
124 | 131 |
|
125 | 132 |
</target> |
126 | 133 |
|
127 | 134 |
<!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
128 | 135 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
129 | 136 |
--> |
130 |
<target name="Windows" depends="check,CreateJarWin,InstallationWin,cleanDirWIN">
|
|
137 |
<target name="Windows" depends="CreateJarWin,InstallationWin,cleanDirWIN"> |
|
131 | 138 |
<echo> ********************************************* </echo> |
132 | 139 |
<echo> ******** WINDOWS DONE *********</echo> |
133 | 140 |
<echo> ********************************************* </echo> |
... | ... | |
161 | 168 |
|
162 | 169 |
<!-- Coping the izpack launcher , excluding launcher-win32.ini --> |
163 | 170 |
<copy todir="${DIR_WIN}/${INSTALLER_DIR}"> |
164 |
<fileset dir="../../build/distribution/launcher/izpack-launcher-1.3/dist">
|
|
171 |
<fileset dir="../build/distribution/launcher/izpack-launcher-1.3/dist"> |
|
165 | 172 |
<exclude name="launcher-Win32.ini" /> |
166 | 173 |
</fileset> |
167 | 174 |
</copy> |
... | ... | |
184 | 191 |
<arg line="a -r ${DIR_WIN}/${WINDOWSZIP} ${DIR_WIN}/${INSTALLER_DIR}/*" /> |
185 | 192 |
</exec> |
186 | 193 |
|
187 |
<copy file="../../build/distribution/launcher/7z/dist_config.txt" tofile="${DIR_WIN}/dist_config.txt" />
|
|
194 |
<copy file="../build/distribution/launcher/7z/dist_config.txt" tofile="${DIR_WIN}/dist_config.txt" /> |
|
188 | 195 |
<replace file="${DIR_WIN}/dist_config.txt" token="%TITLE%" value="gvSIG-${bversion}" /> |
189 | 196 |
<concat destfile="${DIR_WIN}/${WINDOWSEXE}" binary="true"> |
190 |
<fileset file="../../build/distribution/launcher/7z/7zS.sfx" />
|
|
197 |
<fileset file="../build/distribution/launcher/7z/7zS.sfx" /> |
|
191 | 198 |
<fileset file="${DIR_WIN}/dist_config.txt" /> |
192 | 199 |
<fileset file="${DIR_WIN}/${WINDOWSZIP}" /> |
193 | 200 |
</concat> |
194 |
|
|
195 | 201 |
|
202 |
|
|
196 | 203 |
</target> |
197 | 204 |
|
198 | 205 |
<!-- UTILIZAR ESTE TARGET PARA LIMPIAR TODOS LOS DIRECTORIOS Y FICHEROS TEMPORALES CREADOS--> |
Also available in: Unified diff