MPCLOVER-25: Added <code>maven.clover.includes</code> and <code>maven.clover.excludes</code> properties to specify what files to include/exclude from the Cloverification. Thanks to Michael Gaffney.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@153422 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol
2005-02-11 17:06:48 +00:00
parent fc07ccc297
commit 605cce19dd
4 changed files with 38 additions and 9 deletions

View File

@@ -140,9 +140,9 @@
flushinterval="500">
<j:forEach var="srcDir" items="${srcDirs}">
<ant:fileset dir="${srcDir}">
<ant:include name="**/*.java"/>
</ant:fileset>
<ant:fileset dir="${srcDir}"
includes="${maven.clover.includes}"
excludes="${maven.clover.excludes}"/>
</j:forEach>
<!-- Conditionally instrument test code -->
@@ -153,9 +153,9 @@
<u:tokenize var="testDirs" delim="||||">${testSrcSetString}</u:tokenize>
<j:forEach var="testDir" items="${testDirs}">
<ant:fileset dir="${testDir}">
<ant:include name="**/*.java"/>
</ant:fileset>
<ant:fileset dir="${testDir}"
includes="${maven.clover.includes}"
excludes="${maven.clover.excludes}"/>
</j:forEach>
</j:if>

View File

@@ -47,11 +47,15 @@ maven.clover.instrument.tests = false
maven.clover.license.path = ${plugin.getDependencyPath('clover:clover-license')}
# What are the reports that should be generated
maven.clover.report.html=true
maven.clover.report.xml=false
maven.clover.report.swing=false
maven.clover.report.html = true
maven.clover.report.xml = false
maven.clover.report.swing = false
# Decide whether to execute generate Clover data during the site report
# generation or not. If false, the plugin will only generate Clover reports
# based on an existing Clover database.
maven.clover.execute.during.report = true
# List of files to include/exclude from Cloverification
maven.clover.includes = **/*.java
maven.clover.excludes =

View File

@@ -26,6 +26,11 @@
</properties>
<body>
<release version="1.7-SNAPSHOT" date="in SVN">
<action dev="vmassol" type="add" issue="MPCLOVER-25" due-to="Michael Gaffney">
Added <code>maven.clover.includes</code> and
<code>maven.clover.excludes</code> properties to specify what files
to include/exclude from the Cloverification.
</action>
<action dev="vmassol" type="update" issue="MPCLOVER-18">
Added new <code>maven.clover.execute.during.report</code> property
to control whether or not the <code>clover-report</code>

View File

@@ -134,6 +134,26 @@
<code>true</code>
</td>
</tr>
<tr>
<td>maven.clover.includes</td>
<td>Yes</td>
<td>
List of files to include in the Cloverification.
</td>
<td>
<code>**/*.java</code>
</td>
</tr>
<tr>
<td>maven.clover.excludes</td>
<td>Yes</td>
<td>
List of files to exclude from the Cloverification.
</td>
<td>
<code></code>
</td>
</tr>
</table>
</section>
</body>