Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_Build_1211 / build / build.xml @ 34207

History | View | Annotate | Download (2.12 KB)

1
<project name="Complete build system" basedir=".">
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
        <target name="mvn-install">
70
                <exec executable="${mvn.executable}">
71
                        <arg value="install" />
72
                </exec>
73
        </target>
74

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

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

    
79
</project>
80