Driver file resolution fix

This commit is contained in:
serge-rider
2022-09-16 09:13:45 +02:00
parent e465186058
commit e2dee49dc6
@@ -293,16 +293,20 @@ public class CBPlatform extends BasePlatformImpl {
if (!WebDriverRegistry.getInstance().isDriverEnabled(driver)) {
continue;
}
boolean hasAllFiles = true;
boolean hasAllFiles = true, hasJars = false;
for (DBPDriverLibrary lib : libraries) {
if (!lib.isOptional() && lib.getType() != DBPDriverLibrary.FileType.license &&
(lib.getLocalFile() == null || !Files.exists(lib.getLocalFile()))) {
(lib.getLocalFile() == null || !Files.exists(lib.getLocalFile())))
{
hasAllFiles = false;
log.error("\tDriver '" + driver.getId() + "' is missing library '" + lib.getDisplayName() + "'");
break;
} else {
if (lib.getType() == DBPDriverLibrary.FileType.jar) {
hasJars = true;
}
}
}
if (hasAllFiles) {
if (hasAllFiles || hasJars) {
applicableDrivers.add(driver);
}
}