[
https://jira.codehaus.org/browse/MCOBERTURA-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285251#comment-285251
]
Robert Scholte commented on MCOBERTURA-52:
------------------------------------------
I figured out the difference: include/exclude has to do with the files to
instrument.
According to the docs of
[Cobertura|http://cobertura.sourceforge.net/commandlinereference.html]
||Parameter||Required?||Description||Default Value||
|--ignore | No | Specify a regular expression to filter out certain
lines of your source code. This is useful for ignoring logging statements, for
example. You can have as many <ignore/> statements as you want. | No files are
ignored.|
It's a shame there's no example. I'll have to search for that, add a FAQ entry
for it and document it better in the code.
> 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
> 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.
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