File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/groovy/org/scoverage Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import org.gradle.api.plugins.scala.ScalaPlugin
10
10
import org.gradle.api.tasks.JavaExec
11
11
import org.gradle.api.tasks.SourceSet
12
12
import org.gradle.api.tasks.testing.Test
13
+ import org.gradle.util.GFileUtils
13
14
14
15
/**
15
16
* Defines a new SourceSet for the code to be instrumented.
@@ -119,6 +120,9 @@ class ScoverageExtension {
119
120
if (scalaCompileOptions. useAnt) {
120
121
scalaCompileOptions. additionalParameters = parameters. collect { escape(it) }
121
122
} else {
123
+ doFirst {
124
+ GFileUtils . deleteDirectory(destinationDir)
125
+ }
122
126
scalaCompileOptions. additionalParameters = parameters
123
127
}
124
128
// exclude the scala libraries that are added to enable scala version detection
You can’t perform that action at this time.
0 commit comments