Skip to content

Commit afa3d3f

Browse files
author
Brendan W. McAdams
committed
Fixed clover support.
1 parent d220964 commit afa3d3f

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

build.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
-->
1818

1919
<project name="MongoDB Java Driver" default="compile" basedir=".">
20+
<property environment="env"/>
2021

2122
<property file="build.properties" prefix="build.conf"/>
2223

@@ -28,6 +29,8 @@ limitations under the License.
2829
<property name="testdir" location="${targetdir}/test"/>
2930
<dirname property="javabase" file="${java.home}"/>
3031

32+
<property name="clover.jar" location="${env.CLOVER_HOME}/lib/clover.jar"/>
33+
<taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>
3134
<path id="classpath">
3235
<fileset dir="lib"><include name="**/*.jar"/></fileset>
3336
<pathelement path="conf" />
@@ -36,6 +39,15 @@ limitations under the License.
3639
<pathelement path="${javabase}/lib/tools.jar" />
3740
</path>
3841

42+
<path id="classpath.clover">
43+
<fileset dir="lib"><include name="**/*.jar"/></fileset>
44+
<pathelement path="conf" />
45+
<pathelement path="build/main" />
46+
<pathelement path="build/test" />
47+
<pathelement path="${javabase}/lib/tools.jar" />
48+
<pathelement path="${clover.jar}" />
49+
</path>
50+
3951
<!-- ******************************************************************* -->
4052
<!-- The init target. -->
4153
<!-- ******************************************************************* -->
@@ -311,7 +323,7 @@ limitations under the License.
311323
<report format="noframes" todir="${testdir}"/>
312324
</junitreport>
313325
</target>
314-
<taskdef resource="cloverlib.xml" classpath="../lib/clover.jar"/>
326+
315327

316328

317329
<target name="-check.clover">
@@ -327,7 +339,8 @@ limitations under the License.
327339
</target>
328340

329341
<target name="jenkins-test" depends="with.clover,compile">
330-
<testng classpathref="classpath" outputdir="${testdir}" listeners="com.mongodb.util.TestNGListener, com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector" haltonfailure="false" >
342+
343+
<testng classpathref="classpath.clover" outputdir="${testdir}" listeners="com.mongodb.util.TestNGListener, com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector" haltonfailure="false" >
331344
<jvmarg value="-Xmx512M" />
332345
<xmlfileset dir="." includes="testng.xml"/>
333346
</testng>

0 commit comments

Comments
 (0)