-
Notifications
You must be signed in to change notification settings - Fork 1
/
coverage.xml
194 lines (163 loc) · 5.44 KB
/
coverage.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE project [
<!ENTITY Common SYSTEM "common.xml">
%Common;
]>
<!--
Bouncy Castle Build Configuration
$RCSfile: coverage.xml,v $
$Author: bouncy $
$Date: 2005-07-06 13:02:52 $
$Revision: 1.1 $
-->
<project name="bouncy" default="init" basedir=".">
<property file="${user.home}/crypto_env.properties"/>
<property name="junit.jar" value="${user.junit.root}/junit.jar" />
<property name="activation.jar" value="${user.activation.jar}" />
<property name="mail.jar" value="${user.mail.jar}" />
<property name="mailapi.jar" value="${user.mailapi.jar}" />
<property name="jcoverage.root" value="${user.jcoverage.root}" />
<property name="jcoverage.new" value="c:\devel\testjc" />
<property name="jcoverage.jar" value="${jcoverage.new}/jcoverage.jar" />
<property name="jcoverage.output" value="${basedir}/jcoverage" />
<property name="jcoverage.report" value="${jcoverage.output}/report" />
<!-- include common targets, properties -->
<property name="master.jdk" value="jdk14" />
&Common;
<path id="jcoverage.junk" >
<pathelement location="${jcoverage.jar}" />
<pathelement location="${jcoverage.root}/lib/bcel.jar" />
<pathelement location="${jcoverage.root}/lib/java-getopt-1.0.9.jar" />
<pathelement location="${jcoverage.root}/lib/log4j-1.2.8.jar" />
<pathelement location="${jcoverage.root}/lib/jakarta-oro-2.0.7.jar" />
</path>
<path id="compile.cp">
<path refid="jcoverage.junk" />
<pathelement location="${master.classes}" />
<pathelement location="${activation.jar}" />
<pathelement location="${mail.jar}" />
<pathelement location="${mailapi.jar}" />
<pathelement location="${junit.jar}" />
</path>
<taskdef resource="tasks.properties" classpath="${jcoverage.jar}" />
<!-- public callable targets -->
<target name="clean" depends="common-clean" />
<target name="test" depends="common-test" />
<target name="dist" depends="common-dist" />
<target name="package" depends="common-package" />
<target name="compile" depends="coverage-compile" />
<target name="jdoc" depends="common-jdoc" />
<!-- make -f coverage.xml -Dis.jce=true -Dis.lw=true clean demo -->
<target name="demo-prepare" >
<antcall target="clean" />
<delete file="jcoverage.ser" />
<delete dir="jcoverage" />
<antcall target="init" />
<antcall target="compile" />
</target>
<target name="demo-noget" >
<antcall target="demo-prepare" />
<antcall target="pp-noget" />
<antcall target="mini-test" />
<antcall target="coverage" />
</target>
<target name="demo" >
<antcall target="demo-prepare" />
<antcall target="pp" />
<antcall target="mini-test" />
<antcall target="coverage" />
</target>
<target name="mini-test" depends="compile" if="is.lw" >
<java classname="org.bouncycastle.crypto.test.CAST6Test"
fork="yes" >
<classpath refid = "compile.cp" />
</java>
</target>
<target name="pp" >
<instrument>
<fileset dir="${master.classes}" >
<exclude name="**/test/*.class" />
</fileset>
</instrument>
</target>
<target name="pp-noget" >
<instrument ignorejavabean="true">
<fileset dir="${master.classes}" >
<exclude name="**/test/*.class" />
</fileset>
</instrument>
</target>
<!-- *** Private Targets *** -->
<target name="prepare" >
<instrument >
<fileset dir="${master.classes}" >
<include name="javax/**/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/asn1/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/cms/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/crypto/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/jce/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/mail/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/math/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/ocsp/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/openssl/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
<instrument >
<fileset dir="${master.classes}" >
<include name="**/util/**/*.class" />
<exclude name="**/test/*.class" />
</fileset>
</instrument>
</target>
<target name="coverage" >
<report srcdir="${master.src}" destdir="${jcoverage.report}" >
<classpath refid = "compile.cp" />
<instrumentation file="jcoverage.ser" />
</report>
</target>
<target name="coverage-compile" >
<javac srcdir="${master.src}"
destdir="${master.classes}" debug="true" >
<classpath refid = "compile.cp" />
</javac>
</target>
</project>