-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.xml
executable file
·63 lines (46 loc) · 1.57 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
<project name="Http4e MasterBuild" default="all">
<property file="ant.properties" />
<target name="build">
<subant target="">
<fileset dir="." includes="*/ant.project.xml" />
</subant>
</target>
<macrodef name="iterate">
<attribute name="target"/>
<sequential>
<subant target="@{target}">
<fileset dir="." includes="*/ant.project.xml" />
</subant>
</sequential>
</macrodef>
<target name="clean">
<iterate target="clean"/>
</target>
<target name="dist">
<iterate target="dist"/>
</target>
<target name="compile">
<iterate target="compile"/>
</target>
<target name="feature">
<copy todir="dest" flatten="true">
</copy>
</target>
<target name="tar" depends="">
<echo>Preparing Tar Product including:
features/${project.plugin}_${product.version}.jar,
plugins/${project.plugin}_${product.version}.jar,
plugins/${project.core}_${product.version}.jar</echo>
<copy file="./site.xml" tofile="./install/site.xml"/>
<tar destfile="install/${product.tar}">
<tarfileset dir="install/features" prefix="/features" preserveLeadingSlashes="false">
<include name="${project.plugin}_${product.version}.jar"/>
</tarfileset>
<tarfileset dir="install/plugins" prefix="/plugins" preserveLeadingSlashes="false">
<include name="${project.core}_${product.version}.jar"/>
<include name="${project.plugin}_${product.version}.jar"/>
</tarfileset>
</tar>
</target>
<target name="all" depends="build,tar"/>
</project>