Currently it is not possible to exclude entire methods from being instrumented. Rather, the ignore command just filters out method calls within custom methods themselves (e.g. logging statements within custom methods).
This patch introduces a new command "ignoreMethod", which can be used from command line or ant tasks, and skips over entire methods to ignore them from Cobertura reports. In contrast to patch #1576631, the ignore statement is not limited to just setter and getter methods.
For method matching, the specified ignore statement can be any substring of the actual method -- making the ignore method more powerful (e.g. .set* and .get* to ignore all setters and getters).
ignoreMethod
I am about to add an --ignoreMethodAnnotation switch that is in the following patch:
https://sourceforge.net/tracker/index.php?func=detail&aid=3010530&group_id=130558&atid=720017
That patch was derived from:
https://sourceforge.net/tracker/index.php?func=detail&aid=2035169&group_id=130558&atid=720017