|
@@ -10,6 +10,7 @@
|
10
|
10
|
<available property="clover.installed" classname="com.cenqua.clover.CloverInstr" />
|
11
|
11
|
|
12
|
12
|
<target name="with.clover" depends="clean" if="clover.installed">
|
|
13
|
+ <clover-clean/>
|
13
|
14
|
<clover-setup>
|
14
|
15
|
<fileset dir="src/com/" includes="**/*.java" />
|
15
|
16
|
<fileset dir="test/com/">
|
|
@@ -22,9 +23,8 @@
|
22
|
23
|
<target name="clover.xml" if="clover.installed">
|
23
|
24
|
<mkdir dir="reports/clover" />
|
24
|
25
|
<clover-report>
|
25
|
|
- <current outfile="reports/clover/clover.xml"/>
|
|
26
|
+ <current outfile="reports/clover/clover.xml"/>
|
26
|
27
|
</clover-report>
|
27
|
|
- <clover-clean/>
|
28
|
28
|
</target>
|
29
|
29
|
|
30
|
30
|
<target name="clover.html" if="clover.installed">
|
|
@@ -32,20 +32,19 @@
|
32
|
32
|
<mkdir dir="reports/clover/history" />
|
33
|
33
|
<clover-historypoint historydir="reports/clover/history" />
|
34
|
34
|
<clover-report>
|
35
|
|
- <current outfile="reports/clover">
|
36
|
|
- <format type="html"/>
|
37
|
|
- </current>
|
38
|
|
- <historical outfile="reports/clover" historydir="reports/clover/history" />
|
|
35
|
+ <current outfile="reports/clover">
|
|
36
|
+ <format type="html"/>
|
|
37
|
+ </current>
|
|
38
|
+ <historical outfile="reports/clover" historydir="reports/clover/history" />
|
39
|
39
|
</clover-report>
|
40
|
|
- <clover-clean/>
|
41
|
40
|
</target>
|
42
|
41
|
|
43
|
42
|
<import file="build.xml"/>
|
44
|
43
|
<property name="test.reports" value="./junitreports" />
|
45
|
44
|
|
46
|
|
-
|
47
|
45
|
<target name="test-html" depends="with.clover,compile-test,test,clover.html"/>
|
48
|
46
|
<target name="test-xml" depends="with.clover,compile-test,test,clover.xml"/>
|
|
47
|
+ <target name="test-both" depends="test-html,test-xml"/>
|
49
|
48
|
<target name="-post-test-run">
|
50
|
49
|
<mkdir dir="${test.reports}" />
|
51
|
50
|
<junitreport todir="${test.reports}">
|