Revision 37561
branches/v2_0_0_prep/libraries/org.gvsig.exportto/prepare-workspace.xml | ||
---|---|---|
4 | 4 |
|
5 | 5 |
<property name="workspace.basedir" value="${org.gvsig.initial.build.basedir}/.." /> |
6 | 6 |
<property name="build.basedir" value="${workspace.basedir}/org.gvsig.maven.base.build" description="Eclipse workspace location" /> |
7 |
<property name="build.jar.version" value="1.0.6-SNAPSHOT" />
|
|
7 |
<property name="build.jar.version" value="1.0.8-SNAPSHOT" />
|
|
8 | 8 |
<property name="build.jar.file" value="org.gvsig.maven.base.build-${build.jar.version}.jar" /> |
9 | 9 |
|
10 | 10 |
<property name="ant.libs.dir" location="${build.basedir}" description="Additional ant tasks libs folder" /> |
... | ... | |
28 | 28 |
<mkdir dir="target" /> |
29 | 29 |
|
30 | 30 |
<!-- Download the build jar file --> |
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" />
|
|
31 |
<get src="http://devel.gvsig.org/m2repo/j2se/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" dest="target/${build.jar.file}" verbose="true" />
|
|
32 | 32 |
|
33 | 33 |
<!-- Unzip de build jar file into the workspace root folder --> |
34 | 34 |
<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false"> |
... | ... | |
40 | 40 |
</copy> |
41 | 41 |
|
42 | 42 |
</target> |
43 |
|
|
44 |
<target name="find.depends.natives.file"> |
|
45 |
<condition property="depends.natives.file.exists"> |
|
46 |
<available file="${org.gvsig.initial.build.basedir}/DEPENDS_ON_NATIVE_LIBRARIES"/> |
|
47 |
</condition> |
|
48 |
</target> |
|
49 |
|
|
50 |
<target name="find.gvsig.platform.properties.file" |
|
51 |
depends="find.depends.natives.file" |
|
52 |
if="depends.natives.file.exists"> |
|
53 |
<condition property="gvsig.platform.exists"> |
|
54 |
<available file="${user.home}/.gvsig.platform.properties"/> |
|
55 |
</condition> |
|
56 |
</target> |
|
57 |
|
|
58 |
<target name="check.gvsig.platform.properties" |
|
59 |
depends="find.gvsig.platform.properties.file"> |
|
60 |
<fail if="depends.natives.file.exists" unless="gvsig.platform.exists"> |
|
61 |
ERROR!! |
|
62 |
|
|
63 |
You have to define your gvSIG platform properties, |
|
64 |
by creating the file: ${user.home}/.gvsig.platform.properties |
|
65 |
with the following content: |
|
43 | 66 |
|
44 |
<target name="prepare-workspace" depends="get-maven-base-build-local,get-maven-base-build-remote"> |
|
67 |
native_platform=linux |
|
68 |
native_distribution=all |
|
69 |
native_compiler=gcc4 |
|
70 |
native_arch=i386 |
|
71 |
native_libraryType=dynamic |
|
72 |
export native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType} |
|
45 | 73 |
|
74 |
Replace the fifth initial variables values with the ones appropiate |
|
75 |
to your platform. |
|
76 |
|
|
77 |
If you use maven in the command line, you can use the previous file also |
|
78 |
to define the MAVEN_OPTS environment variable, by adding to your |
|
79 |
.bash_rc file something like this: |
|
80 |
|
|
81 |
if [ -f "${HOME}/.gvsig.platform.properties" ] |
|
82 |
then |
|
83 |
. ${HOME}/.gvsig.platform.properties |
|
84 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m -Dnative-classifier=${native_classifier}" |
|
85 |
else |
|
86 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m" |
|
87 |
fi |
|
88 |
|
|
89 |
It will work if you use the bash shell. In any other case or platform, you'll |
|
90 |
have to define your MAVEN_OPTS environment variable and set the |
|
91 |
"native-classifier" parameter directly. |
|
92 |
</fail> |
|
93 |
|
|
94 |
</target> |
|
95 |
|
|
96 |
<target name="prepare-workspace" depends="get-maven-base-build-local,get-maven-base-build-remote,check.gvsig.platform.properties"> |
|
97 |
|
|
46 | 98 |
<mkdir dir="target" /> |
47 | 99 |
|
48 | 100 |
<chmod dir="${build.basedir}/maven/bin" perm="u+x" includes="m2,mvn,mvnDebug" /> |
... | ... | |
66 | 118 |
<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-configure-eclipse-workspace" /> |
67 | 119 |
|
68 | 120 |
<!-- Configure the gvSIG profile --> |
69 |
<ant antfile="${build.basedir}/check-gvsig-profile.xml" target="initialize" />
|
|
121 |
<ant antfile="${build.basedir}/check-gvsig-profile.xml" /> |
|
70 | 122 |
|
71 | 123 |
<property name="user-settings-file-location" value="${user.home}/.m2/settings.xml" /> |
72 | 124 |
|
... | ... | |
95 | 147 |
<target name="clean"> |
96 | 148 |
<delete dir="target" /> |
97 | 149 |
</target> |
98 |
|
|
150 |
|
|
99 | 151 |
</project> |
Also available in: Unified diff