From fcf195d28ad79c134e44f370d3ff2495a50a7225 Mon Sep 17 00:00:00 2001 From: Casper Bang Date: Wed, 25 Mar 2015 12:26:00 +0100 Subject: [PATCH 1/2] Added support for net.sourceforge.cobertura.CoverageIgnore annotation of Cobertura. --- scripts/_Events.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/_Events.groovy b/scripts/_Events.groovy index 11e624f..2b5d4a1 100644 --- a/scripts/_Events.groovy +++ b/scripts/_Events.groovy @@ -340,10 +340,12 @@ class AntInstrumentationBuildfileBuilder { 'exclude'(name: "${pattern}") } } + 'ignoreMethodAnnotation'(annotationName: "net.sourceforge.cobertura.CoverageIgnore") } } } + println "Using Cobertura with settings:\n ${writer.toString()}" return writer.toString() } } From f90073a8c8d0d2f0e816fa32ecd473334513c35a Mon Sep 17 00:00:00 2001 From: Casper Bang Date: Wed, 25 Mar 2015 12:32:50 +0100 Subject: [PATCH 2/2] Removed println leftover from previous commit --- scripts/_Events.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_Events.groovy b/scripts/_Events.groovy index 2b5d4a1..efb62c6 100644 --- a/scripts/_Events.groovy +++ b/scripts/_Events.groovy @@ -345,7 +345,7 @@ class AntInstrumentationBuildfileBuilder { } } - println "Using Cobertura with settings:\n ${writer.toString()}" + //println "Using Cobertura with settings:\n ${writer.toString()}" return writer.toString() } }