MPCLOVER-21: Do not create a Clover report link when the project has no tests.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@153426 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2005-02-11 17:40:41 +00:00
parent 7dd376ceee
commit bafb136d36
2 changed files with 6 additions and 3 deletions

View File

@ -327,7 +327,7 @@
========================================================================
-->
<goal name="maven-clover-plugin:register">
<j:if test="${sourcesPresent == 'true'}">
<j:if test="${unitTestSourcesPresent == 'true'}">
<doc:registerReport
name="Clover"
pluginName="maven-clover-plugin"
@ -343,7 +343,7 @@
========================================================================
-->
<goal name="maven-clover-plugin:deregister">
<j:if test="${sourcesPresent == 'true'}">
<j:if test="${unitTestSourcesPresent == 'true'}">
<doc:deregisterReport name="Clover"/>
</j:if>
</goal>

View File

@ -2,7 +2,7 @@
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,6 +26,9 @@
</properties>
<body>
<release version="1.7-SNAPSHOT" date="in SVN">
<action dev="vmassol" type="fix" issue="MPCLOVER-21">
Do not create a Clover report link when the project has no tests.
</action>
<action dev="vmassol" type="update" issue="MPCLOVER-22" due-to="Maarten Coene">
Open Clover report page in a new window in the same manner as it's
done for the Javadoc and XRef reports.