forked from cucumber/cucumber-jvm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
cobertura.xml
91 lines (87 loc) · 3.32 KB
/
cobertura.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
<project>
<target name="instrument">
<!-- we don't bother with the clojure and scala modules -->
<antcall target="instrumentAModule">
<param name="module" value="core"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="groovy"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="guice"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="ioke"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="java"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="jruby"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="junit"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="jython"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="openejb"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="picocontainer"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="rhino"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="spring"/>
</antcall>
<antcall target="instrumentAModule">
<param name="module" value="weld"/>
</antcall>
</target>
<target name="report" depends="merge">
<property name="src.dir" value="src/main/java/"/>
<cobertura-report datafile="sum.ser"
format="html"
destdir="./target/report">
<fileset dir="./core/${src.dir}"/>
<fileset dir="./groovy/${src.dir}"/>
<fileset dir="./guice/${src.dir}"/>
<fileset dir="./ioke/${src.dir}"/>
<fileset dir="./java/${src.dir}"/>
<fileset dir="./jruby/${src.dir}"/>
<fileset dir="./junit/${src.dir}"/>
<fileset dir="./jython/${src.dir}"/>
<fileset dir="./picocontainer/${src.dir}"/>
<fileset dir="./rhino/${src.dir}"/>
<fileset dir="./spring/${src.dir}"/>
<fileset dir="./weld/${src.dir}"/>
</cobertura-report>
</target>
<target name="merge">
<cobertura-merge datafile="sum.ser">
<fileset dir=".">
<include name="**/cobertura.ser"/>
</fileset>
</cobertura-merge>
</target>
<target name="instrumentAModule">
<property name="classes.dir" value="target/classes"/>
<cobertura-instrument todir="${module}/${classes.dir}">
<fileset dir="${module}/target/classes">
<include name="**/*.class"/>
</fileset>
</cobertura-instrument>
</target>
<property environment="env"/>
<property name="cobertura.dir" value="${env.COBERTURA_HOME}"/>
<path id="cobertura.classpath">
<fileset dir="${cobertura.dir}">
<include name="cobertura.jar"/>
<include name="lib/**/*.jar"/>
</fileset>
</path>
<taskdef classpathref="cobertura.classpath" resource="tasks.properties"/>
</project>