Statistics
| Revision:

svn-gvsig-desktop / tags / v1_9_Build_1252 / build / build.xml @ 44118

History | View | Annotate | Download (2.86 KB)

1 23354 jmvivo
<project name="Complete_build_system" basedir="." default="prepare-eclipse-workspace">
2 20506 jcampos
        <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 23354 jmvivo
                and sources distribution.
6 20506 jcampos
        </description>
7
        <!-- set global properties for this build -->
8 23354 jmvivo
        <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 23375 jmvivo
        <property environment="environment"/>
11
12 20506 jcampos
        <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 23375 jmvivo
        <presetdef name="maven">
53
                <exec executable="${mvn.executable}">
54
                        <env key="JAVA_HOME" value="${java.home}"/>
55
                </exec>
56
        </presetdef>
57
58 20506 jcampos
        <target name="prepare-eclipse-workspace" depends="mvn-clean,mvn-install-without-tests">
59 23375 jmvivo
                <maven>
60 20506 jcampos
                        <arg value="-Declipse.workspace=../" />
61
                        <arg value="eclipse:add-maven-repo" />
62 23375 jmvivo
                </maven>
63
                <maven>
64 20506 jcampos
                        <arg value="eclipse:eclipse" />
65 23375 jmvivo
                </maven>
66
67 20506 jcampos
        </target>
68
        <target name="mvn-clean">
69 23375 jmvivo
                <maven>
70 20506 jcampos
                        <arg value="clean" />
71 23375 jmvivo
                </maven>
72 20506 jcampos
        </target>
73
        <target name="mvn-install-without-tests">
74 23375 jmvivo
                <maven>
75 20506 jcampos
                        <arg value="install" />
76
                        <arg value="-Dmaven.test.skip=true" />
77 23375 jmvivo
                </maven>
78 20506 jcampos
        </target>
79 22842 jcampos
80
        <target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions,mvn-eclipse-clean">
81 23375 jmvivo
                <maven>
82 22842 jcampos
                        <arg value="eclipse:eclipse" />
83 23375 jmvivo
                </maven>
84 22842 jcampos
        </target>
85
86
        <target name="mvn-install-extensions">
87 23375 jmvivo
                <maven>
88 22842 jcampos
                        <arg value="install" />
89
                        <arg value="-Dmaven.test.skip=true" />
90
                        <arg value="-Dinstall-extension" />
91 23375 jmvivo
                </maven>
92 22842 jcampos
        </target>
93
94 20506 jcampos
        <target name="mvn-install">
95 23375 jmvivo
                <maven>
96 20506 jcampos
                        <arg value="install" />
97 23375 jmvivo
                </maven>
98 20506 jcampos
        </target>
99
100 22842 jcampos
        <target name="mvn-eclipse-clean">
101 23375 jmvivo
                <maven>
102 22842 jcampos
                        <arg value="eclipse:clean" />
103 23375 jmvivo
                </maven>
104 22842 jcampos
        </target>
105
106
        <target name="mvn-eclipse-eclipse">
107 23375 jmvivo
                <maven>
108 22842 jcampos
                        <arg value="eclipse:eclipse" />
109 23375 jmvivo
                </maven>
110 22842 jcampos
        </target>
111
112 20506 jcampos
        <!-- 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>