forked from hyperbox/hyperbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
88 lines (71 loc) · 3.82 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!--
*
* Hyperbox - Virtual Infrastructure Manager
* Copyright (C) 2015 Maxime Dor
*
* http://kamax.io/hbox/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
-->
<project name="Hyperbox" default="help">
<property file="build.properties" />
<property name="hbox.api.base.dir" location="../api" />
<property name="hbox.client.base.dir" location="../client" />
<property name="hbox.server.base.dir" location="../server" />
<property name="vbox.common.base.dir" location="../vbox-common" />
<property name="vbox.4_2.base.dir" location="../vbox-4.2" />
<property name="vbox.4_3.base.dir" location="../vbox-4.3" />
<property name="vbox.5_0.base.dir" location="../vbox-5.0" />
<property file="${hbox.api.base.dir}/global.properties" />
<property name="hbox.out.dir" location="${out.dirname}" />
<property name="hbox.api.out.dir" location="${out.dirname}" />
<property name="hbox.client.out.dir" location="${out.dirname}" />
<property name="hbox.server.out.dir" location="${out.dirname}" />
<include file="${hbox.api.base.dir}/build.xml" as="hbox.api" />
<include file="${hbox.client.base.dir}/build.xml" as="hbox.client" />
<include file="${hbox.server.base.dir}/build.xml" as="hbox.server" />
<include file="${vbox.common.base.dir}/build.xml" as="vbox.common" />
<include file="${vbox.4_2.base.dir}/build.xml" as="vbox.4_2" />
<include file="${vbox.4_3.base.dir}/build.xml" as="vbox.4_3" />
<include file="${vbox.5_0.base.dir}/build.xml" as="vbox.5_0" />
<target name="clean">
<delete dir="${out.dirname}" />
</target>
<target name="configure" depends="hbox.api.configure">
<property name="hbox.client.out.bin.dir" location="${hbox.client.out.dir}/${bin.dirname}/${platform}/${client.name}" />
<property name="hbox.client.module.deploy.dir" location="${hbox.client.out.bin.dir}/${module.dirname}" />
<property name="hbox.server.out.bin.dir" location="${hbox.server.out.dir}/${bin.dirname}/${platform}/${server.name}" />
<property name="hbox.server.module.deploy.dir" location="${hbox.server.out.bin.dir}/${module.dirname}" />
<echoproperties>
<propertyset>
<propertyref prefix="hbox." />
<propertyref prefix="vbox." />
<propertyref prefix="tools." />
<propertyref prefix="platform" />
</propertyset>
</echoproperties>
</target>
<extension-point name="compile" depends="configure, hbox.api.compile, hbox.client.compile, hbox.server.compile, vbox.common.compile, vbox.4_2.compile, vbox.4_3.compile, vbox.5_0.compile" />
<extension-point name="build" depends="compile, hbox.api.build, hbox.client.build, hbox.server.build, vbox.common.build, vbox.4_2.build, vbox.4_3.build, vbox.5_0.build" />
<extension-point name="deploy" depends="build, hbox.api.deploy, hbox.client.deploy, hbox.server.deploy, vbox.common.deploy, vbox.4_2.deploy, vbox.4_3.deploy, vbox.5_0.deploy" />
<extension-point name="dist" depends="deploy, hbox.api.dist, hbox.client.dist, hbox.server.dist" />
<target name="help">
<java classname="org.apache.tools.ant.Main">
<arg value="-projecthelp" />
<arg value="-buildfile" />
<arg value="${ant.file}" />
</java>
</target>
</project>