Added some logging for exe's
@@ -61,12 +61,18 @@ class ExecutableManager {
String getPathOfExecutable(ExecutableType executableType) {
File executableFile = getExecutable(executableType)
- null == executableFile ? null : executableFile.absolutePath
+ if(executableFile == null) {
+ logger.error("Expected to find an executable of type ${executableType.toString()} but none was found")
+ return null
+ }
+ return executableFile.absolutePath
}
String getPathOfExecutable(ExecutableType executableType, String defaultPath) {
if (defaultPath?.trim()) {
- return defaultPath
+ if(findExecutableFile(defaultPath.trim()) {
+ return defaultPath.trim()
+ }
}
getPathOfExecutable(executableType)
