Quantcast

[m2]cobertura ignore verse exclude?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[m2]cobertura ignore verse exclude?

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

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---

Loading...