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 2007/01/16 23:57:28 UTC

[m2] how to omit log.* from cobertura report?

Here is my declaration:

and I still get log.* as untested in my reports:

32  0

         log.debug("org.delta.provider.npi.service.impl.ProviderHistoryDAOImpl#getProviderHistoryByProviderIdentifier(long,
int)");






                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>cobertura-maven-plugin</artifactId>
                    <version>2.0</version>

                    <configuration>
                        <!-- BUG IN PLUGIN:
<dataFile>${basedir}/target/cobertura.ser</dataFile>-->
                        <formats>
                            <format>xml</format>
                            <format>html</format>
                        </formats>

                        <instrumentation>
                            <ignores>
                                <ignore>com/**/*Exception.class</ignore>
                                <ignore>org/**/*Exception.class</ignore>
                                <ignore>com/**/BaseObject.class</ignore>
                                <ignore>org.apache.commons.logging.*
</ignore>
                            </ignores>
                            <excludes>
                                <exclude>com/**/*Test.class</exclude>
                                <exclude>org/**/*Test.class</exclude>
                                <exclude>com/**/*Exception.class</exclude>
                                <exclude>org/**/*Exception.class</exclude>
                                <exclude>com/**/BaseObject.class</exclude>
                                <exclude>org.delta.provider.npi.test.*
</exclude>
                                <exclude>org.apache.commons.logging.*
</exclude>
                            </excludes>
                        </instrumentation>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>clean</goal>
                                <!--<goal>check</goal>-->
                            </goals>
                        </execution>
                    </executions>
                </plugin>





-- 
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com