[CORDA-3079] Load drivers directory automatically (#5454)

This commit is contained in:
Stefan Iliev 2019-09-12 10:29:38 +01:00 committed by Anthony Keenan
parent 3b941af607
commit 81a6a9ecba

View File

@ -112,6 +112,9 @@ public class CordaCaplet extends Capsule {
// If it fails, just return the existing class path. The main Corda jar will detect the error and fail gracefully.
return cp;
}
// Add additional directories of JARs to the classpath (at the end), e.g., for JDBC drivers.
augmentClasspath((List<Path>) cp, new File(baseDir, "drivers"));
try {
List<String> jarDirs = nodeConfig.getStringList("jarDirs");
log(LOG_VERBOSE, "Configured JAR directories = " + jarDirs);