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
stuartraetaylor committed Jan 23, 2023
1 parent b980a91 commit 5a8e31d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,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 5a8e31d

Please sign in to comment.