forked from flexunit/flexunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
100 lines (87 loc) · 3.47 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
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="UTF-8"?>
<project name="FlexUnit4" basedir="." default="test">
<property environment="env" />
<!-- Configuration -->
<property name="build.number" value="4.0.0" />
<property name="build.useFlex" value="true" />
<property name="build.artifact.name" value="flexunit-${build.number}.zip" />
<!-- Project locations -->
<property name="anttasks.loc" location="${basedir}/FlexUnit4AntTasks" />
<property name="library.loc" location="${basedir}/FlexUnit4" />
<property name="cilistener.loc" location="${basedir}/FlexUnit4CIListener" />
<property name="uirunner.loc" location="${basedir}/FlexUnit4UIRunner" />
<target name="clean">
<ant dir="${anttasks.loc}" target="clean" inheritall="false" />
<ant dir="${library.loc}" target="clean" inheritall="false" />
<ant dir="${cilistener.loc}" target="clean" inheritall="false" />
<ant dir="${uirunner.loc}" target="clean" inheritall="false" />
<delete file="${basedir}/${build.artifact.name}" />
</target>
<target name="anttasks">
<ant dir="${anttasks.loc}" target="package" inheritall="false">
<property name="build.number" value="${build.number}" />
</ant>
</target>
<target name="library">
<ant dir="${library.loc}" target="package" inheritall="false">
<property name="build.number" value="${build.number}" />
<property name="build.useFlex" value="${build.useFlex}" />
</ant>
</target>
<target name="cilistener" depends="library">
<copy todir="${cilistener.loc}/libs" overwrite="true">
<fileset dir="${library.loc}/dist">
<include name="*.swc" />
</fileset>
</copy>
<ant dir="${cilistener.loc}" target="package" inheritall="false">
<property name="build.number" value="${build.number}" />
<property name="build.useFlex" value="${build.useFlex}" />
</ant>
</target>
<target name="uirunner" depends="library">
<copy todir="${uirunner.loc}/libs" overwrite="true">
<fileset dir="${library.loc}/dist">
<include name="*.swc" />
</fileset>
</copy>
<ant dir="${uirunner.loc}" target="package" inheritall="false">
<property name="build.number" value="${build.number}" />
<property name="build.useFlex" value="${build.useFlex}" />
</ant>
</target>
<target name="package" depends="anttasks,library,cilistener,uirunner">
<zip destfile="${basedir}/${build.artifact.name}">
<zipfileset dir="${anttasks.loc}/docs" prefix="flexunit/docs/anttasks" />
<zipfileset dir="${library.loc}/docs/asdocs" prefix="flexunit/docs/flexunit" />
<zipfileset dir="${cilistener.loc}/docs" prefix="flexunit/docs/cilistener" />
<zipfileset dir="${uirunner.loc}/docs" prefix="flexunit/docs/uirunner" />
<zipfileset dir="${anttasks.loc}/dist" prefix="flexunit">
<include name="*.jar" />
</zipfileset>
<zipfileset dir="${library.loc}/dist" prefix="flexunit">
<include name="*.swc" />
</zipfileset>
<zipfileset dir="${cilistener.loc}/dist" prefix="flexunit">
<include name="*.swc" />
</zipfileset>
<zipfileset dir="${uirunner.loc}/dist" prefix="flexunit">
<include name="*.swc" />
</zipfileset>
</zip>
</target>
<target name="test" depends="package">
<copy todir="${library.loc}/libs" overwrite="true">
<fileset dir="${anttasks.loc}/dist">
<include name="*.jar" />
</fileset>
<fileset dir="${cilistener.loc}/dist">
<include name="*.swc" />
</fileset>
<fileset dir="${uirunner.loc}/dist">
<include name="*.swc" />
</fileset>
</copy>
<ant dir="${library.loc}" target="test" inheritall="false" />
</target>
</project>