Add the possibility to set multiple includes and excludes files for instrumentation.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115972 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse 2004-08-17 14:00:48 +00:00
parent fc665cc23e
commit df82d5f716
5 changed files with 17 additions and 6 deletions

View File

@ -122,10 +122,9 @@
<maven:addPath id="maven.dependency.classpath" refid="${pom.getDependencyClasspath()}"/>
<instrument todir="${maven.jcoverage.instrumentation}">
<ant:fileset dir="${maven.build.dest}">
<ant:include name="**/*.class" />
<ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
</ant:fileset>
<ant:fileset dir="${maven.build.dest}"
includes="${maven.jcoverage.instrumentation.includes}"
excludes="${maven.jcoverage.instrumentation.excludes}"/>
<ant:classpath>
<ant:path refid="jcoverage.classpath"/>
</ant:classpath>

View File

@ -20,4 +20,5 @@ maven.jcoverage.database.dir=${maven.jcoverage.dir}/database
maven.jcoverage.junit.fork=yes
maven.jcoverage.report.template=maven
maven.jcoverage.report.stylesheet=${plugin.resources}/style.css
maven.jcoverage.instrumentation.excludes=NOT_DEFINED
maven.jcoverage.instrumentation.includes=**/*.class
maven.jcoverage.instrumentation.excludes=NOT_DEFINED

View File

@ -23,7 +23,7 @@
<pomVersion>3</pomVersion>
<id>maven-jcoverage-plugin</id>
<name>Maven JCoverage plugin</name>
<currentVersion>1.0.7</currentVersion>
<currentVersion>1.0.8-SNAPSHOT</currentVersion>
<package>org.apache.maven.jcoveragereport</package>
<description>This plugin provides coverage analysis of your source-code based on the open-source jcoverage tool.</description>
<shortDescription>This plugin provides coverage analysis of your source-code based on the open-source jcoverage tool.</shortDescription>

View File

@ -24,6 +24,9 @@
<author email="evenisse@ifrance.com">Emmanuel Venisse</author>
</properties>
<body>
<release version="1.0.8" date="In CVS">
<action dev="evenisse" type="add">Add the possibility to set multiple includes and excludes files for instrumentation.</action>
</release>
<release version="1.0.7" date="2004-07-11">
<action dev="evenisse" type="fix">Fixed tests execution when artifact contains properties.</action>
<action dev="evenisse" type="fix">Remove deprecated APIs.</action>

View File

@ -56,6 +56,14 @@
Specifies the build directory for the instrumented classes.
</td>
</tr>
<tr>
<td>maven.jcoverage.instrumentation.includes</td>
<td>**/*.class</td>
<td>Yes</td>
<td>
Specifies the pattern for the included classes of instrumentation.
</td>
</tr>
<tr>
<td>maven.jcoverage.instrumentation.excludes</td>
<td>Not defined</td>