Skip to content

Commit

Permalink
wildcard patterns are not supported on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
maiflai committed Oct 20, 2018
1 parent 37fa6e1 commit 35bb88e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/groovy/org/scoverage/ScoverageExtension.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,19 @@ class ScoverageExtension {
// the compile task creates a store of measured statements
outputs.file(new File(extension.dataDir, 'scoverage.coverage.xml'))
}
t.tasks[ScoveragePlugin.TEST_NAME].outputs.files("${extension.dataDir}/scoverage.measurements.*")
t.tasks[ScoveragePlugin.TEST_NAME].outputs.upToDateWhen { extension.dataDir.listFiles(measurementFile) }
t.tasks[ScoveragePlugin.REPORT_NAME].configure {
inputs.dir(extension.dataDir)
outputs.dir(extension.reportDir)
}
}

FilenameFilter measurementFile = new FilenameFilter() {
@Override
boolean accept(File dir, String name) {
return name.startsWith("scoverage.measurements.")
}
}

}
}

0 comments on commit 35bb88e

Please sign in to comment.