Statistics
| Revision:

root / trunk / build / build.xml @ 22991

History | View | Annotate | Download (2.8 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
        <property name="mavendir" value="./maven" />
9
        <condition property="mvn.executable" value="${mavendir}/bin/mvn.bat" else="${mavendir}/bin/mvn">
10
                <os family="windows" />
11
        </condition>
12

    
13
        <condition property="isLinux">
14
                <and>
15
                        <os family="unix" />
16
                        <not>
17
                                <os family="mac" />
18
                        </not>
19
                </and>
20
        </condition>
21
        <condition property="isWindows">
22
                <or>
23
                        <os family="windows" />
24
                        <os family="win9x" />
25
                        <os name="Windows Vista" />
26
                </or>
27
        </condition>
28
        <condition property="isMac">
29
                <os family="mac" />
30
        </condition>
31

    
32
        <condition property="gvsig.os" value="w32">
33
                <os family="windows" />
34
        </condition>
35
        <condition property="gvsig.os" value="linux">
36
                <and>
37
                        <os family="unix" />
38
                        <not>
39
                                <os family="mac" />
40
                        </not>
41
                </and>
42
        </condition>
43
        <condition property="gvsig.os" value="mac">
44
                <os family="mac" />
45
        </condition>
46

    
47
        <property name="native-binaries-dir" value="../binaries" />
48

    
49
        <target name="prepare-eclipse-workspace" depends="mvn-clean,mvn-install-without-tests">
50
                <exec executable="${mvn.executable}">
51
                        <arg value="-Declipse.workspace=../" />
52
                        <arg value="eclipse:add-maven-repo" />
53
                </exec>
54
                <exec executable="${mvn.executable}">
55
                        <arg value="eclipse:eclipse" />
56
                </exec>
57
        </target>
58
        <target name="mvn-clean">
59
                <exec executable="${mvn.executable}">
60
                        <arg value="clean" />
61
                </exec>
62
        </target>
63
        <target name="mvn-install-without-tests">
64
                <exec executable="${mvn.executable}">
65
                        <arg value="install" />
66
                        <arg value="-Dmaven.test.skip=true" />
67
                </exec>
68
        </target>
69

    
70
        <target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions,mvn-eclipse-clean">
71
                <exec executable="${mvn.executable}">
72
                        <arg value="eclipse:eclipse" />
73
                </exec>
74
        </target>
75

    
76
        <target name="mvn-install-extensions">
77
                <exec executable="${mvn.executable}">
78
                        <arg value="install" />
79
                        <arg value="-Dmaven.test.skip=true" />
80
                        <arg value="-Dinstall-extension" />
81
                </exec>
82
        </target>
83

    
84
        <target name="mvn-install">
85
                <exec executable="${mvn.executable}">
86
                        <arg value="install" />
87
                </exec>
88
        </target>
89

    
90
        <target name="mvn-eclipse-clean">
91
                <exec executable="${mvn.executable}">
92
                        <arg value="eclipse:clean" />
93
                </exec>
94
        </target>
95

    
96
        <target name="mvn-eclipse-eclipse">
97
                <exec executable="${mvn.executable}">
98
                        <arg value="eclipse:eclipse" />
99
                </exec>
100
        </target>
101

    
102
        <!-- TODO: Target for make complete building of gvSIG, calling all enabled projects by default -->
103

    
104
        <!-- target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" / -->
105

    
106
</project>
107