File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/groovy/org/scoverage Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ 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
29
30
30
ScoverageExtension (Project project ) {
31
31
@@ -87,7 +87,9 @@ class ScoverageExtension {
87
87
plugin. addAll(parameters)
88
88
}
89
89
plugin. add(" -P:scoverage:dataDir:${ extension.dataDir.absolutePath} " . toString())
90
- plugin. add(" -P:scoverage:excludedPackages:${ extension.excludedPackages} " . toString())
90
+ if (extension. excludedPackages) {
91
+ plugin. add(" -P:scoverage:excludedPackages:${ extension.excludedPackages.join(';')} " . toString())
92
+ }
91
93
if (extension. highlighting) {
92
94
plugin. add(' -Yrangepos' )
93
95
}
You can’t perform that action at this time.
0 commit comments