root / branches / v10 / install / instalador-gvSIG-mac / build.xml @ 9129
History | View | Annotate | Download (1.87 KB)
1 | 9126 | mija | <project name="bundle-gvSIG" default="init" basedir="."> |
---|---|---|---|
2 | <property name="FULLVERSION" value="1.0"/> |
||
3 | <!-- we store the resulting installer in this directory: -->
|
||
4 | <property name="INSTALLER_DIR" location="gvSIG-${FULLVERSION}_installer" /> |
||
5 | 9129 | mija | <property name="NOMBRE_BUNDLE" value="gvSIG ${FULLVERSION} build ${build.number}"/> |
6 | <property name="NOMBRE_BUNDLE_AUTOINSTALADOR" value="${NOMBRE_BUNDLE} autoinstalador"/> |
||
7 | |||
8 | 9126 | mija | |
9 | <target name="init"> |
||
10 | <ant antfile="build-comun.xml"/> |
||
11 | 9129 | mija | |
12 | <!-- tenemos un bundle mac, pero sin libs nativas-->
|
||
13 | <!-- crear dir NativeLibs-->
|
||
14 | <mkdir dir="${NOMBRE_BUNDLE}.app/Contents/Resources/NativeLibs"/> |
||
15 | <!-- copiar dentro dylibs, jnilibs-->
|
||
16 | <copy todir="${NOMBRE_BUNDLE}.app/Contents/Resources/NativeLibs" |
||
17 | flatten="true" |
||
18 | >
|
||
19 | <fileset dir="../../binaries/mac/raster/" includes="**/*.dylib **/*.jnilib"/> |
||
20 | </copy>
|
||
21 | <!-- copiar jars en gvSIG/extensiones/...-->
|
||
22 | <delete>
|
||
23 | <fileset dir="${NOMBRE_BUNDLE}.app/Contents/Resources/Java/gvSIG/extensiones/com.iver.cit.gvsig/lib" includes="jgdal*.jar jmrsid*.jar"/> |
||
24 | <!--para asegurarnos de que no hay jgdal o jmrsid duplicados, lo cual provocarÃa error -->
|
||
25 | </delete>
|
||
26 | <copy todir="${NOMBRE_BUNDLE}.app/Contents/Resources/Java/gvSIG/extensiones/com.iver.cit.gvsig/lib" |
||
27 | flatten="true" |
||
28 | >
|
||
29 | <fileset dir="../../binaries/mac/raster/" includes="**/*.jar"/> |
||
30 | </copy>
|
||
31 | <!-- copiamos el bundle autoinstalador ... -->
|
||
32 | <copy todir="${NOMBRE_BUNDLE_AUTOINSTALADOR}.app"> |
||
33 | <fileset dir="instalador.app"/> |
||
34 | </copy>
|
||
35 | <!-- (corregimos permisos de ejecucion que copy se ha cargado) -->
|
||
36 | <chmod file="${NOMBRE_BUNDLE_AUTOINSTALADOR}.app/Contents/MacOS/applet" perm="+rwxrxrx"/> |
||
37 | <!-- ...y movemos bundle gvSIG a su sitio dentro de autoinstalador -->
|
||
38 | <move todir="${NOMBRE_BUNDLE_AUTOINSTALADOR}.app/Contents/Resources/gvSIG/${NOMBRE_BUNDLE}.app"> |
||
39 | <fileset dir="${NOMBRE_BUNDLE}.app"/> |
||
40 | </move>
|
||
41 | |||
42 | 9126 | mija | </target>
|
43 | |||
44 | </project> |