blob: 8e328aa77223815cd44e4b2c97950807adc5c70d [file] [log] [blame]
Till Westmannea8ab392013-06-05 15:17:08 -07001<!--
2 ! Copyright 2009-2013 by The Regents of the University of California
3 ! Licensed under the Apache License, Version 2.0 (the "License");
4 ! you may not use this file except in compliance with the License.
5 ! you may obtain a copy of the License from
6 !
7 ! http://www.apache.org/licenses/LICENSE-2.0
8 !
9 ! Unless required by applicable law or agreed to in writing, software
10 ! distributed under the License is distributed on an "AS IS" BASIS,
11 ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 ! See the License for the specific language governing permissions and
13 ! limitations under the License.
14 !-->
khfaraaz82@gmail.comd02d00f2012-09-26 02:08:33 +000015<project>
16 <target name="instrument">
17 <antcall target="instrumentAModule">
18 <param name="module" value="asterix-aql"/>
19 <param name="module" value="asterix-om"/>
20 <param name="module" value="asterix-metadata"/>
21 <param name="module" value="asterix-tools"/>
22 <param name="module" value="asterix-common"/>
23 <param name="module" value="asterix-transactions"/>
24 </antcall>
25 </target>
26
27 <target name="report" depends="merge">
28 <property name="src.dir" value="src/main/java/"/>
29 <cobertura-report datafile="sum.ser"
30 format="html"
31 destdir="./target/report">
32 <!-- Add all modules that should be included below -->
33 <!-- fileset dir="./MODULE_NAME_TO_REPLACE/${src.dir}"/ -->
34 <fileset dir="./asterix-aql/${src.dir}"/>
35 <fileset dir="./asterix-om/${src.dir}"/>
36 <fileset dir="./asterix-metadata/${src.dir}"/>
37 <fileset dir="./asterix-tools/${src.dir}"/>
38 <fileset dir="./asterix-common/${src.dir}"/>
39 <fileset dir="./asterix-runtime/${src.dir}"/>
40 <fileset dir="./asterix-transactions/${src.dir}"/>
41 </cobertura-report>
42 </target>
43
44 <target name="merge">
45 <cobertura-merge datafile="sum.ser">
46 <fileset dir=".">
47 <include name="**/cobertura.ser"/>
48 </fileset>
49 </cobertura-merge>
50 </target>
51
52 <target name="instrumentAModule">
53 <property name="classes.dir" value="target/classes"/>
54 <cobertura-instrument todir="./${module}/${classes.dir}">
55 <fileset dir="./asterix-aql/target/classes">
56 <include name="**/*.class"/>
57 </fileset>
58 <fileset dir="./asterix-om/target/classes">
59 <include name="**/*.class"/>
60 </fileset>
61 <fileset dir="./asterix-metadata/target/classes">
62 <include name="**/*.class"/>
63 </fileset>
64 <fileset dir="./asterix-tools/target/classes">
65 <include name="**/*.class"/>
66 </fileset>
67 <fileset dir="./asterix-common/target/classes">
68 <include name="**/*.class"/>
69 </fileset>
70 <fileset dir="./asterix-runtime/target/classes">
71 <include name="**/*.class"/>
72 </fileset>
73 <fileset dir="./asterix-transactions/target/classes">
74 <include name="**/*.class"/>
75 </fileset>
76 </cobertura-instrument>
77 </target>
78
79<property environment="env"/>
khfaraaz82@gmail.comad150742012-10-10 02:13:45 +000080 <property name="COBERTURA_HOME" value="../../.m2/repository/net/sourceforge/cobertura/cobertura/1.9.4.1"/>
khfaraaz82@gmail.comd02d00f2012-09-26 02:08:33 +000081 <property name="cobertura.dir" value="${COBERTURA_HOME}"/>
82 <path id="cobertura.classpath">
83 <fileset dir="${cobertura.dir}">
84 <include name="cobertura.jar"/>
85 <include name="lib/**/*.jar"/>
86 </fileset>
87 </path>
88 <taskdef classpathref="cobertura.classpath" resource="tasks.properties"/>
89</project>