Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2006 / build / build.xml @ 33768

History | View | Annotate | Download (2.97 KB)

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