From: John W. L. <Joh...@sa...> - 2010-12-31 00:15:31
|
There is a difference between ignore and exclude. Here is the relevant paragraph in the ant documentation: "You can tell Cobertura to ignore certain classes by passing in "ignore" regular expressions. The ignore pattern can be any valid perl 5 regular expression. This will ignore any calls to any method that matches the ignore regular expression. It will NOT skip over these classes during instrumention. To exclude classes from being instrumented, either exclude them from your fileset or use the alternative method below and specify an excludeClasses pattern." So, ignore is used to ignore lines of codes that have particular method calls. It sounds like you are interested in excluding. So try specifying the classes you wish to exclude using the <exclude>. Something like com/package/to/exclude/*.class. Unfortunately, I don't know a great deal about the maven plugin. It was developed by a different group. But, I will do what I can. John -----Original Message----- From: Pau...@us... [mailto:Pau...@us...] Sent: Thursday, December 30, 2010 4:47 PM To: cob...@li... Subject: [Cobertura-devel] Excluding Classes and or Packages from the coverage report Is there a way to exclude or ignore particular Classes or packages from the coverage report? I have tried to do the below but it looks like it is not working. <configuration> <instrumentation> <ignores> <ignore>com.package.to.exclude.*</ignore> </ignores> <excludes> <exclude>com/package/to/exclude/testtoexclude.class</exclude> </excludes> </instrumentation> </configuration> Thanks Paul ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |