You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2008/01/17 00:08:21 UTC

[m2]cobertura ignore verse exclude?

1st I would like to know the difference between ignore verse exclude?

I have this, but am trying to exclude every package under a given package

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>cobertura-maven-plugin</artifactId>
                    <version>2.2</version>
                    <configuration>
                        <formats>
                            <format>xml</format>
                            <format>html</format>
                        </formats>
                        <instrumentation>
                            <ignores>
                                <ignore>org.apache.commons.logging.*
</ignore>

                                <!-- C2 packages -->
                                *<ignore>org.delta.esp.dap.c2.claim.*
</ignore>
                                <ignore>org.delta.esp.dap.c2.claim.runtime.*
</ignore>*
                            </ignores>
                            <excludes>
                                *<exclude>com/**/*Test.class</exclude>*
                                <exclude>com/**/*Exception.class</exclude>
                                <exclude>com/**/BaseObject.class</exclude>
                                <exclude>com/**/Constants.class</exclude>
                                <exclude>org/**/Constants.class</exclude>


So excluding, I can exclude any *Test.class, but I want to do something like
not count org.delta.esp.dap.c2.claim.** which should also ignore
org.delta.esp.dap.c2.claim.runtime.*

How should I do this?

-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---