Revision 9129 branches/v10/install/instalador-gvSIG-mac/build.xml

View differences:

build.xml
2 2
	<property name="FULLVERSION" value="1.0"/>
3 3
	<!-- we store the resulting installer in this directory: -->
4 4
	<property name="INSTALLER_DIR" location="gvSIG-${FULLVERSION}_installer" />
5
	<property name="NOMBRE_BUNDLE" value="gvSIG ${FULLVERSION} build ${build.number}"/>
6
	<property name="NOMBRE_BUNDLE_AUTOINSTALADOR" value="${NOMBRE_BUNDLE} autoinstalador"/>
7
	
5 8

  
6
	
7 9
	<target name="init">
8 10
		<ant antfile="build-comun.xml"/>
11
		
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

  
9 42
	</target>
10 43

  
11 44
</project>

Also available in: Unified diff