Skip to content

Commit e9c5ef3

Browse files
authored
Tolerate but skip old dbb.scannerMapping configurations (#385)
* Tolerate but skip old dbb.scannerMapping configurations Signed-off-by: Dennis Behm <[email protected]>
1 parent ed7c200 commit e9c5ef3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utilities/DependencyScannerUtilities.groovy

+5-2
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ def parseConfigStringToMap(String configString) {
146146
}
147147
}
148148

149-
// validate existance of scannerClass definition
150-
assert scannerConfigMap.scannerClass != null
149+
if (scannerConfigMap.scannerClass == null) {
150+
println "*! The provided scanner mapping configuration ($configString) is not formed correctly and skipped."
151+
println "*! Sample syntax: 'dbb.scannerMapping = \"scannerClass\":\"DependencyScanner\", \"languageHint\":\"COB\" :: cbl,cpy,cob'"
152+
return null
153+
}
151154

152155
return scannerConfigMap
153156
}

0 commit comments

Comments
 (0)