<project basedir="." default="build" name="ConverterTests" xmlns:jacoco="antlib:org.jacoco.ant">
<!-- Java Code Coverage -->
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
<classpath path="D:/Ohjelmakehitys/bin/jacoco-0.6.3/lib/jacocoant.jar" />
</taskdef>
<target name="test">
<echo message="Starting ConverterTests tests..."/>
<jacoco:coverage destfile="${jacoco.result.exec.file}" append="true">
<junit fork="true" maxmemory="1024m" printsummary="yes" forkmode="once">
<jvmarg value="-Xmx1024m" />
<jvmarg value="-XX:PermSize=256m" />
<jvmarg value="-XX:MaxPermSize=512m" />
<jvmarg value="-Djava.awt.headless=true" />
<sysproperty key="WS_PATH" value="${env.WORKSPACE}"/>
<test name="package.ConverterTestsHudsonSuite" todir="${junit.output.dir}"/>
<formatter type="xml"/>
<classpath refid="CDAR2ConverterTests.classpath"/>
</junit>
</jacoco:coverage>
</target>
<target name="report" depends="test">
<jacoco:report>
<executiondata>
<file file="${jacoco.result.exec.file}" />
</executiondata>
<structure name="CDAR2ConverterTests">
<classfiles>
<fileset dir="${jacoco.src.dir}">
<include name="**/*.class" />
<exclude name="**/*Test*.class" />
<exclude name="**/*$*.class" />
</fileset>
</classfiles>
</structure>
<html destdir="${jacoco.result.report.dir}" />
</jacoco:report>
</target>