[ 
https://jira.codehaus.org/browse/MCOBERTURA-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290218#comment-290218
 ] 

Michal Jedynak commented on MCOBERTURA-157:
-------------------------------------------

In my case project is quite big (hundreds of packages in a lot of modules) and 
{{excludes}} are a way of telling which packages needs to be addressed for code 
coverage improvement. I would also need to have quite a big configuration for 
{{includes}}. However you're right, in some cases correctly configuring 
{{includes}} would solve the problem.
                
> Add ability to specify external configuration for excludes
> ----------------------------------------------------------
>
>                 Key: MCOBERTURA-157
>                 URL: https://jira.codehaus.org/browse/MCOBERTURA-157
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.5.1
>            Reporter: Michal Jedynak
>         Attachments: additionalExcludesConfig.patch
>
>
> When a number of excludes is high, the size of pom.xml is getting polluted. I 
> don't want my pom.xml to be too big, so I'd like to specify the path to file 
> with excludes configuration and cobertura should also load excludes from this 
> file.  
> I'm attaching a patch file that adds such behavior to cobertura.
> To use the new feature update your instrumentation configuration:
> {code:xml} 
> <instrumentation>
>   <excludes>
>     <exclude>org.apache/excluded/*.class</exclude>
>   </excludes>
>   <additionalExcludesConfig>excludes.xml</additionalExcludesConfig>
> </instrumentation>
> {code}
> The content of excludes.xml should have the same format as configuration in 
> pom.xml:
> {code:xml} 
> <excludes>
>   <exclude>org.springframework/*.class</exclude>
>   <exclude>org.junit/*.class</exclude>
> </excludes>
> {code}

--
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


Reply via email to