I tried by adding in org.slf4j.* in cobertura.exclude. but there is no use.
my buildfile
require 'buildr/java/cobertura'
require 'buildr/scala'
require 'buildr/myProject'
.....
.....
compile.options.other = %w(-encoding UTF-8)
cobertura.exclude= 'org.slf4j.*'
.....
.....
Please suggest how to proceed.
Thank you in advance
The issue is that
cobertura.exclude
is to exclude files/classes in your project from being instrumented.What you want to use is
cobertura.ignore
, e.g.,which accepts a regular expression of class/method name to ignore.
From the Ant task documentation at https://github.com/cobertura/cobertura/wiki/Ant-Task-Reference: