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

Robert Scholte commented on MCOBERTURA-157:
-------------------------------------------

I hope you're aware that the plugin will first collect all the includes 
followed by excluding the files from this subset. You can also use {{**}} to 
match zero or more packages/directories.
I don't think moving the exludes to a separate file is the right solution. I'd 
really prefer to keep it inside the pom.
_If_ there's a real need, we need to think bigger and move all configuration to 
a separate file.
Maybe it is possible to specify which dependencies you want to instrument, that 
sounds like a better solution to me.
                
> 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