forked from wttech/Slice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
102 lines (91 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
101
102
<project>
<property name="report-format" value="xml"/>
<target name="instrument">
<antcall target="instrumentModule">
<param name="module" value="slice-core-api"/>
</antcall>
<antcall target="instrumentModule">
<param name="module" value="slice-mapper-api"/>
</antcall>
<antcall target="instrumentModule">
<param name="module" value="slice-core"/>
</antcall>
<antcall target="instrumentModule">
<param name="module" value="slice-mapper"/>
</antcall>
<antcall target="instrumentModule">
<param name="module" value="slice-persistence"/>
</antcall>
<antcall target="instrumentModule">
<param name="module" value="slice-persistence-api"/>
</antcall>
</target>
<target name="report-xml">
<antcall target="report">
<param name="report-format" value="xml"/>
</antcall>
</target>
<target name="report-html">
<antcall target="report">
<param name="report-format" value="html"/>
</antcall>
</target>
<target name="report" depends="merge">
<property name="src.dir" value="src/main/java/"/>
<cobertura-report datafile="sum.ser"
format="${report-format}"
destdir="./target/report">
<fileset dir="./slice-core-api/${src.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="./slice-mapper-api/${src.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="./slice-core/${src.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="./slice-mapper/${src.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="./slice-persistence/${src.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="./slice-persistence-api/${src.dir}">
<include name="**/*.java" />
</fileset>
</cobertura-report>
</target>
<target name="merge">
<cobertura-merge datafile="sum.ser">
<fileset dir=".">
<include name="**/cobertura.ser"/>
</fileset>
</cobertura-merge>
</target>
<target name="instrumentModule">
<property name="classes.dir" value="target/classes"/>
<cobertura-instrument ignoreTrivial="true" todir="./${module}/${classes.dir}">
<auxClasspath>
<path refid="cobertura.auxpath" />
</auxClasspath>
<fileset dir="./${module}/target/classes">
<include name="**/*.class"/>
</fileset>
</cobertura-instrument>
</target>
<property environment="env"/>
<property name="cobertura.dir" value="slice-test/lib"/>
<path id="cobertura.classpath">
<fileset dir="${cobertura.dir}">
<include name="cobertura-2.1.1.jar"/>
<include name="lib/**/*.jar"/>
</fileset>
</path>
<path id="cobertura.auxpath">
<pathelement path="${classpath}"/>
<pathelement location="./slice-core-api/target/classes"/>
<pathelement location="./slice-mapper-api/target/classes"/>
<pathelement location="./slice-persistence-api/target/classes"/>
</path>
<taskdef classpathref="cobertura.classpath" resource="tasks.properties"/>
</project>