[
https://jira.codehaus.org/browse/MCOBERTURA-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287836#comment-287836
]
Dmitry Goldenberg commented on MCOBERTURA-52:
---------------------------------------------
Folks,
I can see that this is fixed in 2.6 according to this issue. When is this
version going to be officially available? http://repo1.maven.org/maven2/ only
has versions up to 2.5.1 but not 2.6.
Also it seems that includes don't work (?) E.g. shouldn't the following work
effectively as an exclude? I.e. if I have com.foo.pkg1 and com.foo.pkg2,
shouldn't the below only instrument pkg1 and leave pkg2 not included?
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<includes>
<include>com/foo/pkg1/*.class</include>
</includes>
</instrumentation>
</configuration>
<executions>
<execution>
<id>clean</id>
<phase>pre-site</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
<execution>
<id>instrument</id>
<phase>site</phase>
<goals>
<goal>instrument</goal>
<goal>cobertura</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
> Ignores and Excludes do nothing
> -------------------------------
>
> Key: MCOBERTURA-52
> URL: https://jira.codehaus.org/browse/MCOBERTURA-52
> Project: Maven 2.x Cobertura Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: Windows
> Reporter: Jim Wilson
> Assignee: Robert Scholte
> Fix For: 2.6
>
> Attachments: Issue52Patch2.patch, Issue52Patch3.patch,
> Issue52Patch4.patch
>
>
> After adding this to the POM:
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>cobertura-maven-plugin</artifactId>
> <configuration>
> <instrumentation>
> <excludes>
> <exclude>org/example/**/*Test.class</exclude>
> <exclude>${basedir}</exclude>
> </excludes>
> </instrumentation>
> <check>
> <haltOnFailure>false</haltOnFailure>
> </check>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>clean</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> Cobertura still reports on all classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email