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