With following modification in the plugin.jelly a user can specify more than one exclude filters via maven.jcoverage.instrumentation.excludes (comma separeted).
Here the patch in the plugin.jelly:
Index: plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven-plugins/jcoverage/plugin.jelly,v
retrieving revision 1.16
diff -u -r1.16 plugin.jelly
— plugin.jelly 17 Aug 2004 14:00:48 -0000 1.16
+++ plugin.jelly 27 Oct 2004 08:09:25 -0000
@@ -121,10 +121,16 @@
<maven:addPath id="maven.dependency.classpath" refid="jcoverage.classpath"/>
<maven:addPath id="maven.dependency.classpath" refid="${pom.getDependencyClasspath()}"/>
+
+ <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="*/.class" />
+ <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,9 +139,12 @@
<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>
+ <j:forEach var="var" items="${maven.jcoverage.instrumentation.excludes.split}">
+ <ant:exclude name="${var}" />
+ </j:forEach>
+ </ant:fileset>
</ant:copy>
+
</j:catch>
<j:if test="${ex != null}">