- MPJCOVERAGE-20 : Allow comma separeted values for maven.jcoverage.instrumentation.excludes.

- MPJCOVERAGE-16 : Fix tests failures when user use maven.jcoverage.instrumentation.excludes

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@126211 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse 2005-01-23 14:59:39 +00:00
parent 8011950321
commit 3da5c2a00d
3 changed files with 17 additions and 5 deletions

View File

@ -121,10 +121,16 @@
<maven:addPath id="maven.dependency.classpath" refid="jcoverage.classpath"/>
<u:tokenize var="maven.jcoverage.instrumentation.excludes.split" delim=",">${maven.jcoverage.instrumentation.excludes}</u:tokenize>
<instrument todir="${maven.jcoverage.instrumentation}">
<ant:fileset dir="${maven.build.dest}"
includes="${maven.jcoverage.instrumentation.includes}"
excludes="${maven.jcoverage.instrumentation.excludes}"/>
<ant:fileset dir="${maven.build.dest}">
<ant:include name="${maven.jcoverage.instrumentation.includes}" />
<j:forEach var="var" items="${maven.jcoverage.instrumentation.excludes.split}">
<ant:exclude name="${var}" />
</j:forEach>
</ant:fileset>
<ant:classpath>
<ant:path refid="jcoverage.classpath"/>
</ant:classpath>
@ -133,7 +139,11 @@
<ant:copy todir="${maven.jcoverage.instrumentation}">
<ant:fileset dir="${maven.build.dest}">
<ant:exclude name="**/*.class" />
<ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
</ant:fileset>
<ant:fileset dir="${maven.build.dest}">
<j:forEach var="var" items="${maven.jcoverage.instrumentation.excludes.split}">
<ant:include name="${var}" />
</j:forEach>
</ant:fileset>
</ant:copy>

View File

@ -26,6 +26,8 @@
<body>
<release version="1.0.10" date="IN CVS">
<action dev="evenisse" type="fix">Open report in a new window.</action>
<action dev="evenisse" type="fix" issue="MPJCOVERAGE-20">Allow comma separeted values for maven.jcoverage.instrumentation.excludes.</action>
<action dev="evenisse" type="fix" issue="MPJCOVERAGE-16">Fix tests failures when user use maven.jcoverage.instrumentation.excludes</action>
</release>
<release version="1.0.9" date="2004-11-10">
<action dev="brett" type="fix">Fix incorrect usage of maven:addPath tag</action>

View File

@ -69,7 +69,7 @@
<td>Not defined</td>
<td>Yes</td>
<td>
Specifies the pattern for the excluded classes of instrumentation.
Specifies the pattern for the excluded classes of instrumentation. It's a comma separated property.
</td>
</tr>
<!--tr>