-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-apps.xml
96 lines (85 loc) · 2.3 KB
/
build-apps.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
89
90
91
92
93
94
95
96
<project
name="Ibis applications build"
default="jar"
basedir=".">
<description>
Ibis applications build.
</description>
<target name="usage"
description="Print this message">
<exec executable="ant">
<arg line="-projecthelp"/>
</exec>
<echo message="os.name ${os.name} os.arch ${os.arch}"/>
</target>
<target name="-list-build-files" unless="build.files">
<path id="buildfiles">
<fileset dir=".">
<include name="*/**/build.xml"/>
</fileset>
</path>
<property name="build.files" refid="buildfiles"/>
</target>
<target name="load-contrib" unless="contrib-loaded">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${build-apps-dir}/external/ant-contrib-0.4.jar"/>
</classpath>
</taskdef>
<property name="contrib-loaded" value="true"/>
</target>
<target name="-do-list" depends="load-contrib">
<foreach
list="${build.files}"
delimiter="${path.separator}"
target="-do-one"
param="build.file">
<param name="do-target" value="${do-target}"/>
</foreach>
</target>
<!--
Compile only
-->
<target name="compile"
depends="-list-build-files"
description="Compile without Ibis-serialization rewriting, or for sequential runs">
<antcall target="-do-list">
<param name="do-target" value="compile"/>
</antcall>
</target>
<!--
Build
-->
<target name="build"
depends="-list-build-files"
description="Build Ibis applications">
<antcall target="-do-list">
<param name="do-target" value="build"/>
</antcall>
</target>
<!--
Jar
-->
<target name="jar"
depends="-list-build-files"
description="Build Ibis applications">
<antcall target="-do-list">
<param name="do-target" value="jar"/>
</antcall>
</target>
<!--
Clean
-->
<target name="clean"
depends="-list-build-files"
description="Clean in Ibis applications">
<antcall target="-do-list">
<param name="do-target" value="clean"/>
</antcall>
</target>
<target name="-do-one">
<dirname file="${build.file}" property="build.dir"/>
<echo message="Running 'ant ${do-target}' in ${build.dir}"/>
<ant dir="${build.dir}" target="${do-target}" inheritAll="false"/>
</target>
</project>