forked from openclover/clover
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
executable file
·78 lines (66 loc) · 2.59 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
<project name="global" basedir=".">
<!-- Import build files from top-level clover modules -->
<import file="clover-ant/build.xml"/> <!-- Clover-for-Ant -->
<import file="clover-eclipse/build.xml"/> <!-- Clover-for-Eclipse -->
<import file="clover-idea/build.xml"/> <!-- Clover-for-IDEA -->
<import file="perfmon/build.xml"/> <!-- PerformanceMonitor -->
<property name="test.results.dir" value="${build.dir}/test/html-report"/>
<macrodef name="subtarget">
<attribute name="module"/>
<attribute name="target"/>
<sequential>
<subant target="@{module}.@{target}"
inheritrefs="true"
inheritall="true"
buildpath="@{module}"/>
</sequential>
</macrodef>
<macrodef name="doall">
<attribute name="target"/>
<sequential>
<subtarget module="clover-buildutil" target="@{target}"/>
<subtarget module="clover-core-libs" target="@{target}"/>
<subtarget module="clover-runtime" target="@{target}"/>
<subtarget module="clover-core" target="@{target}"/>
<subtarget module="groovy" target="@{target}"/>
<subtarget module="clover-ant" target="@{target}"/>
<subtarget module="clover-eclipse" target="@{target}"/>
<subtarget module="clover-idea" target="@{target}"/>
<!--<subtarget module="perfmon" target="@{target}"/>-->
</sequential>
</macrodef>
<target name="global.repkg">
<doall target="repkg"/>
</target>
<target name="global.build">
<doall target="build"/>
</target>
<target name="global.test.build">
<doall target="test.build"/>
</target>
<target name="global.test">
<doall target="test"/>
</target>
<target name="global.clean">
<doall target="clean"/>
</target>
<target name="global.test.report" depends="global.test">
<mkdir dir="${test.results.dir}"/>
<junitreport todir="${test.results.dir}">
<fileset dir="${build.dir}">
<include name="**/test/**/TEST-*.xml"/>
</fileset>
<report format="frames"
todir="${test.results.dir}"
styledir="${common.base}/etc/style"/>
</junitreport>
</target>
<target name="global.idea.pack">
<tar destfile="target/idea-files.tar">
<fileset dir=".">
<include name="**/*.ipr"/>
<include name="**/*.iml"/>
</fileset>
</tar>
</target>
</project>