Revision 116

View differences:

org.gvsig.sextante/trunk/org.gvsig.sextante.app/prepare-workspace.xml
7 7
	<property name="build.jar.version" value="1.0.6-SNAPSHOT" />
8 8
	<property name="build.jar.file" value="org.gvsig.maven.base.build-${build.jar.version}.jar" />
9 9

  
10
	<property name="ant.libs.dir" location="${build.basedir}"
11
		description="Additional ant tasks libs folder" />
12
	
13
	<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask">
14
		<classpath>
15
			<pathelement location="${ant.libs.dir}/com.oopsconsultancy.xmltask-1.16.1.jar" />
16
		</classpath>
17
	</taskdef>
18
	
10
	<property name="ant.libs.dir" location="${build.basedir}" description="Additional ant tasks libs folder" />
11

  
19 12
	<target name="check-maven-base-build-available">
20 13
		<available file="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" property="maven-base-build-available" />
21 14
	</target>
......
32 25
	</target>
33 26

  
34 27
	<target name="get-maven-base-build-remote" depends="check-maven-base-build-available" unless="maven-base-build-available">
28
		<mkdir dir="target" />
29

  
35 30
		<!-- Download the build jar file -->
36 31
		<get src="http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" dest="target/${build.jar.file}" verbose="true" />
37 32

  
......
42 37
					<exclude name="META-INF/**" />
43 38
				</patternset>
44 39
			</zipfileset>
45
			<filterset>
46
				<filter token="GVSIG_HOME" value="/home/cordin/projects/gvsig/svn/gvSIG-2.0-build/build/product" />
47
			</filterset>
48 40
		</copy>
49 41

  
50 42
	</target>
......
75 67

  
76 68
		<!-- Configure the gvSIG profile -->
77 69
		<ant antfile="${build.basedir}/check-gvsig-profile.xml" target="initialize" />
78
		
70

  
79 71
		<property name="user-settings-file-location" value="${user.home}/.m2/settings.xml" />
72

  
73
		<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask">
74
			<classpath>
75
				<pathelement location="${ant.libs.dir}/com.oopsconsultancy.xmltask-1.16.1.jar" />
76
			</classpath>
77
		</taskdef>
78

  
80 79
		<xmltask source="${user-settings-file-location}" dest="${user-settings-file-location}">
81
			<copy path="//:settings/:profiles/:profile[:id/text() = 'gvsig-install']/:properties/:gvsig.install.dir/text()" property="current-gvsig-location"/>
80
			<copy path="//:settings/:profiles/:profile[:id/text() = 'gvsig-install']/:properties/:gvsig.install.dir/text()" property="current-gvsig-location" />
82 81
		</xmltask>
83
		
84
		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" 
85
			     token="@GVSIG_HOME@" value="${current-gvsig-location}"/>
86
		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs"
87
			     token="@GVSIG_HOME@" value="${current-gvsig-location}"/>
88 82

  
83
		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" />
84
		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" />
85

  
89 86
		<!-- Compile, install and generate eclipse projects -->
90 87
		<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-install-and-eclipse-eclipse" />
91 88

  
......
99 96
		<delete dir="target" />
100 97
	</target>
101 98

  
102
</project>
99
</project>

Also available in: Unified diff