maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <>
Subject Re: Jcoverage exclusion list
Date Tue, 17 Aug 2004 10:10:36 GMT

Hi st├ęphane,

> I'm using maven 1.0 and jcoverage plugin 1.0.7.
Good to hear that.  I use them, too.

> I would like to exclude some classes from jcoverage and i used the 
> maven.jcoverage.instrumentation.excludes property.
> the problem is that i would like to exclude differents files :
> *Tests.class and *Aspect.class .
> It's working if i put only one pattern, but not with both .
> The reference guide does not give me any clue...
> Can anyone help ?
Before I start answering, why do you have test classes in your
production source tree?  Shouldn't they be separate?  That way, you only
need to specify the *Aspect.class'es.

Anyways, a quick look at the plugin.jelly tells me that you can't.
Here's what it looks like:
  <instrument todir="${maven.jcoverage.instrumentation}">
    <ant:fileset dir="${}">
      <ant:include name="**/*.class" />
      <ant:exclude name="${maven.jcoverage.instrumentation.excludes}" />
      <ant:path refid="jcoverage.classpath"/>

As you can see, it has to follow Ant's FileSet's exclude convention,
which you can consult at:
As for me, I can't find a way to give multiple patterns here.

I would suggest making a patch and send it to the jcoverage-plugin
people.  That would help all of us. ;-)

Best regards,
-- Shinobu Kawai

Shinobu Kawai <,>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message