Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

91 lines (87 sloc) 3.4 kb
<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>
Jump to Line
Something went wrong with that request. Please try again.