cobertura/cobertura — pull request #77 by soosterwaal (2013-09-16 15:26:30+00:00)
Title: New argument ignoreDeprecated

I though it would be handy to be able to ignore deprecated methods and classes. You can already ignore java.lang.Deprecated if you want , but this would only ignore methods. Another option is to add the CoverageIgnore to every deprecated class, but I find this to much work for some project.

To make it easy to ignore deprecated methods and classes, I added a new command line and ant argument, ignoreDeprecated, which ignores methods and classes from instrumenting.

To use it via commandline just add --ignoreDeprecated as argument, for ant you must add the following: