root / trunk / build / build.xml @ 23356
History | View | Annotate | Download (2.94 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 |
<condition property="mvn.executable" value="${mavendir}/bin/mvn.bat" else="${mavendir}/bin/mvn"> |
11 |
<os family="windows" /> |
12 |
</condition>
|
13 |
|
14 |
<condition property="isLinux"> |
15 |
<and>
|
16 |
<os family="unix" /> |
17 |
<not>
|
18 |
<os family="mac" /> |
19 |
</not>
|
20 |
</and>
|
21 |
</condition>
|
22 |
<condition property="isWindows"> |
23 |
<or>
|
24 |
<os family="windows" /> |
25 |
<os family="win9x" /> |
26 |
<os name="Windows Vista" /> |
27 |
</or>
|
28 |
</condition>
|
29 |
<condition property="isMac"> |
30 |
<os family="mac" /> |
31 |
</condition>
|
32 |
|
33 |
<condition property="gvsig.os" value="w32"> |
34 |
<os family="windows" /> |
35 |
</condition>
|
36 |
<condition property="gvsig.os" value="linux"> |
37 |
<and>
|
38 |
<os family="unix" /> |
39 |
<not>
|
40 |
<os family="mac" /> |
41 |
</not>
|
42 |
</and>
|
43 |
</condition>
|
44 |
<condition property="gvsig.os" value="mac"> |
45 |
<os family="mac" /> |
46 |
</condition>
|
47 |
|
48 |
<property name="native-binaries-dir" value="../binaries" /> |
49 |
|
50 |
<target name="prepare-eclipse-workspace" depends="mvn-clean,mvn-install-without-tests"> |
51 |
<exec executable="${mvn.executable}"> |
52 |
<arg value="-Declipse.workspace=../" /> |
53 |
<arg value="eclipse:add-maven-repo" /> |
54 |
</exec>
|
55 |
<exec executable="${mvn.executable}"> |
56 |
<arg value="eclipse:eclipse" /> |
57 |
</exec>
|
58 |
</target>
|
59 |
<target name="mvn-clean"> |
60 |
<exec executable="${mvn.executable}"> |
61 |
<arg value="clean" /> |
62 |
</exec>
|
63 |
</target>
|
64 |
<target name="mvn-install-without-tests"> |
65 |
<exec executable="${mvn.executable}"> |
66 |
<arg value="install" /> |
67 |
<arg value="-Dmaven.test.skip=true" /> |
68 |
</exec>
|
69 |
</target>
|
70 |
|
71 |
<target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions,mvn-eclipse-clean"> |
72 |
<exec executable="${mvn.executable}"> |
73 |
<arg value="eclipse:eclipse" /> |
74 |
</exec>
|
75 |
</target>
|
76 |
|
77 |
<target name="mvn-install-extensions"> |
78 |
<exec executable="${mvn.executable}"> |
79 |
<arg value="install" /> |
80 |
<arg value="-Dmaven.test.skip=true" /> |
81 |
<arg value="-Dinstall-extension" /> |
82 |
</exec>
|
83 |
</target>
|
84 |
|
85 |
<target name="mvn-install"> |
86 |
<exec executable="${mvn.executable}"> |
87 |
<arg value="install" /> |
88 |
</exec>
|
89 |
</target>
|
90 |
|
91 |
<target name="mvn-eclipse-clean"> |
92 |
<exec executable="${mvn.executable}"> |
93 |
<arg value="eclipse:clean" /> |
94 |
</exec>
|
95 |
</target>
|
96 |
|
97 |
<target name="mvn-eclipse-eclipse"> |
98 |
<exec executable="${mvn.executable}"> |
99 |
<arg value="eclipse:eclipse" /> |
100 |
</exec>
|
101 |
</target>
|
102 |
|
103 |
<!-- TODO: Target for make complete building of gvSIG, calling all enabled projects by default -->
|
104 |
|
105 |
<!-- target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" / -->
|
106 |
|
107 |
</project>
|
108 |
|