svn-gvsig-desktop / tags / v1_9_Build_1230 / build / build.xml @ 41761
History | View | Annotate | Download (2.86 KB)
1 |
<project name="Complete_build_system" basedir="." default="prepare-eclipse-workspace"> |
---|---|
2 |
<description>
|
3 |
Builds and prepare folders to work with eclipse using maven. |
4 |
Also is able to generate a release of all system with binaries distribution |
5 |
and sources distribution. |
6 |
</description>
|
7 |
<!-- set global properties for this build -->
|
8 |
<dirname file="${ant.file.Complete_build_system}" property="ant.file.Complete_build_system.dir"/> |
9 |
<property name="mavendir" location="${ant.file.Complete_build_system.dir}/maven" /> |
10 |
<property environment="environment"/> |
11 |
|
12 |
<condition property="mvn.executable" value="${mavendir}/bin/mvn.bat" else="${mavendir}/bin/mvn"> |
13 |
<os family="windows" /> |
14 |
</condition>
|
15 |
|
16 |
<condition property="isLinux"> |
17 |
<and>
|
18 |
<os family="unix" /> |
19 |
<not>
|
20 |
<os family="mac" /> |
21 |
</not>
|
22 |
</and>
|
23 |
</condition>
|
24 |
<condition property="isWindows"> |
25 |
<or>
|
26 |
<os family="windows" /> |
27 |
<os family="win9x" /> |
28 |
<os name="Windows Vista" /> |
29 |
</or>
|
30 |
</condition>
|
31 |
<condition property="isMac"> |
32 |
<os family="mac" /> |
33 |
</condition>
|
34 |
|
35 |
<condition property="gvsig.os" value="w32"> |
36 |
<os family="windows" /> |
37 |
</condition>
|
38 |
<condition property="gvsig.os" value="linux"> |
39 |
<and>
|
40 |
<os family="unix" /> |
41 |
<not>
|
42 |
<os family="mac" /> |
43 |
</not>
|
44 |
</and>
|
45 |
</condition>
|
46 |
<condition property="gvsig.os" value="mac"> |
47 |
<os family="mac" /> |
48 |
</condition>
|
49 |
|
50 |
<property name="native-binaries-dir" value="../binaries" /> |
51 |
|
52 |
<presetdef name="maven"> |
53 |
<exec executable="${mvn.executable}"> |
54 |
<env key="JAVA_HOME" value="${java.home}"/> |
55 |
</exec>
|
56 |
</presetdef>
|
57 |
|
58 |
<target name="prepare-eclipse-workspace" depends="mvn-clean,mvn-install-without-tests"> |
59 |
<maven>
|
60 |
<arg value="-Declipse.workspace=../" /> |
61 |
<arg value="eclipse:add-maven-repo" /> |
62 |
</maven>
|
63 |
<maven>
|
64 |
<arg value="eclipse:eclipse" /> |
65 |
</maven>
|
66 |
|
67 |
</target>
|
68 |
<target name="mvn-clean"> |
69 |
<maven>
|
70 |
<arg value="clean" /> |
71 |
</maven>
|
72 |
</target>
|
73 |
<target name="mvn-install-without-tests"> |
74 |
<maven>
|
75 |
<arg value="install" /> |
76 |
<arg value="-Dmaven.test.skip=true" /> |
77 |
</maven>
|
78 |
</target>
|
79 |
|
80 |
<target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions,mvn-eclipse-clean"> |
81 |
<maven>
|
82 |
<arg value="eclipse:eclipse" /> |
83 |
</maven>
|
84 |
</target>
|
85 |
|
86 |
<target name="mvn-install-extensions"> |
87 |
<maven>
|
88 |
<arg value="install" /> |
89 |
<arg value="-Dmaven.test.skip=true" /> |
90 |
<arg value="-Dinstall-extension" /> |
91 |
</maven>
|
92 |
</target>
|
93 |
|
94 |
<target name="mvn-install"> |
95 |
<maven>
|
96 |
<arg value="install" /> |
97 |
</maven>
|
98 |
</target>
|
99 |
|
100 |
<target name="mvn-eclipse-clean"> |
101 |
<maven>
|
102 |
<arg value="eclipse:clean" /> |
103 |
</maven>
|
104 |
</target>
|
105 |
|
106 |
<target name="mvn-eclipse-eclipse"> |
107 |
<maven>
|
108 |
<arg value="eclipse:eclipse" /> |
109 |
</maven>
|
110 |
</target>
|
111 |
|
112 |
<!-- TODO: Target for make complete building of gvSIG, calling all enabled projects by default -->
|
113 |
|
114 |
<!-- target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" / -->
|
115 |
|
116 |
</project>
|
117 |
|