Prevented the <code>clover:on</code> goal from failing when there are no unit tests sources available.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2004-07-16 09:47:39 +00:00
parent d53e83548a
commit fbc42cc8af
2 changed files with 9 additions and 3 deletions

View File

@ -127,9 +127,6 @@
<ant:pathconvert property="compileSrcSetString" pathSep="||||"
refid="maven.compile.src.set"/>
<u:tokenize var="srcDirs" delim="||||">${compileSrcSetString}</u:tokenize>
<ant:pathconvert property="testSrcSetString" pathSep="||||"
refid="maven.test.compile.src.set"/>
<u:tokenize var="testDirs" delim="||||">${testSrcSetString}</u:tokenize>
<ant:clover-setup
initstring="${cloverDatabase}"
@ -144,6 +141,11 @@
<!-- Conditionally instrument test code -->
<j:if test="${context.getVariable('maven.clover.instrument.tests') == 'true'}">
<ant:pathconvert property="testSrcSetString" pathSep="||||"
refid="maven.test.compile.src.set"/>
<u:tokenize var="testDirs" delim="||||">${testSrcSetString}</u:tokenize>
<j:forEach var="testDir" items="${testDirs}">
<ant:fileset dir="${testDir}">
<ant:include name="**/*.java"/>

View File

@ -26,6 +26,10 @@
</properties>
<body>
<release version="1.6-SNAPSHOT" date="in CVS">
<action dev="vmassol" type="fix">
Prevented the <code>clover:on</code> goal from failing when there are
no unit tests sources available.
</action>
<action dev="vmassol" type="update">
Updated to Clover Ant 1.3_01.
</action>