LUCENE-1769: Upgrade clover to 2.x (requirement is 2.6.x now, because older versions have bugs)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@891402 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-12-16 19:44:57 +00:00
parent 0b000470a7
commit f18f490a93
3 changed files with 18 additions and 9 deletions

View File

@ -128,7 +128,6 @@
</and>
</condition>
<available
property="javacc.present"
classname="org.javacc.parser.Main"
@ -464,21 +463,20 @@
See http://issues.apache.org/jira/browse/LUCENE-721
-->
<target name="clover" depends="clover.setup, clover.info" description="Instrument the Unit tests using Clover. Requires a Clover 1.3.2 license and clover.jar in the ANT classpath. To use, specify -Drun.clover=true on the command line."/>
<target name="clover" depends="clover.setup, clover.info" description="Instrument the Unit tests using Clover. Requires a Clover 2.x license and clover.jar in the ANT classpath. To use, specify -Drun.clover=true on the command line."/>
<target name="clover.setup" if="clover.enabled">
<taskdef resource="clovertasks"/>
<taskdef resource="cloverlib.xml"/>
<mkdir dir="${clover.db.dir}"/>
<clover-setup initString="${clover.db.dir}/lucene_coverage.db">
<clover-setup initString="${clover.db.dir}/lucene_coverage.db" encoding="${build.encoding}">
<fileset dir="src/java">
<!-- see https://svn.apache.org/repos/private/committers/donated-licenses/clover/1.3.2/README.txt -->
<include name="org/apache/**" />
<include name="javax/**" />
<include name="org/xml/**" />
<include name="org/w3c/**" />
<include name="com/example/**" />
<exclude name="org/apache/lucene/analysis/ASCIIFoldingFilter.java" /> <!-- Class too large for clover -->
<include name="lucli/**" />
</fileset>
<testsources dir="src/test">
<include name="**/*.java" />
</testsources>
</clover-setup>
</target>
@ -502,12 +500,23 @@
-->
<target name="generate-clover-reports" depends="clover.check, clover">
<mkdir dir="${clover.report.dir}"/>
<!-- This extra path is needed, because from a top-level ant run, the contrib tests would be not visible (report generation is only done on top-level not via subants) -->
<fileset dir="contrib" id="clover.contrib.test.src.files">
<include name="**/test/**/*.java"/>
</fileset>
<fileset dir="src/test" id="clover.test.src.files">
<include name="**/*.java" />
</fileset>
<clover-report>
<current outfile="${clover.report.dir}" title="${final.name}">
<format type="html"/>
<testsources refid="clover.test.src.files"/>
<testsources refid="clover.contrib.test.src.files"/>
</current>
<current outfile="${clover.report.dir}/clover.xml" title="${final.name}">
<format type="xml"/>
<testsources refid="clover.test.src.files"/>
<testsources refid="clover.contrib.test.src.files"/>
</current>
</clover-report>
</target>

View File

View File