File tree 1 file changed +10
-3
lines changed
src/main/groovy/org/scoverage 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class ScoverageExtension {
24
24
File sources
25
25
/* * range positioning for highlighting */
26
26
boolean highlighting = true
27
- /* * regex of excluded packages, separated by semicolons */
28
- String excludedPackages = " "
27
+ /* * regex for each excluded package */
28
+ List<String > excludedPackages = []
29
+ /* * regex for each excluded file */
30
+ List<String > excludedFiles = []
29
31
30
32
ScoverageExtension (Project project ) {
31
33
@@ -87,7 +89,12 @@ class ScoverageExtension {
87
89
plugin. addAll(parameters)
88
90
}
89
91
plugin. add(" -P:scoverage:dataDir:${ extension.dataDir.absolutePath} " . toString())
90
- plugin. add(" -P:scoverage:excludedPackages:${ extension.excludedPackages} " . toString())
92
+ if (extension. excludedPackages) {
93
+ plugin. add(" -P:scoverage:excludedPackages:${ extension.excludedPackages.join(';')} " . toString())
94
+ }
95
+ if (extension. excludedFiles) {
96
+ plugin. add(" -P:scoverage:excludedFiles:${ extension.excludedFiles.join(';')} " . toString())
97
+ }
91
98
if (extension. highlighting) {
92
99
plugin. add(' -Yrangepos' )
93
100
}
You can’t perform that action at this time.
0 commit comments