Skip to content

Commit

Permalink
Fix groovy.lang.MissingMethodException when scanSet property is used (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Jan 28, 2023
2 parents 9399c09 + 5a8e31d commit b7a2920
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,11 @@ abstract class AbstractAnalyze extends ConfiguredTask {
}
} else {
config.scanSet.each {
if (it.exists()) {
engine.scan(it, project.name)
File f = project.file it
if (f.exists()) {
engine.scan(f, project.name)
} else {
logger.warn("ScanSet file `${it}` does not exist in ${project.name}")
logger.warn("ScanSet file `${f}` does not exist in ${project.name}")
}
}
}
Expand Down

0 comments on commit b7a2920

Please sign in to comment.