Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ private static Path findPlatformLibDir() {
return Paths.get(path);
}

Path homeDir = Paths.get(System.getProperty("es.path.home"));
String homeDirPath = System.getProperty("es.path.home");
if (homeDirPath == null) {
// if we don't have the native libs passed in for tests, and we don't have the home dir set
// then we must be in a test for an external plugin. there's nothing we can do to get the
// native libs, they don't exist, so just return the working dir, it will fail if the test
// actually tries to load a library
return Paths.get("");
}

Path homeDir = Paths.get(homeDirPath);
Path platformDir = homeDir.resolve("lib/platform");

String osname = System.getProperty("os.name");
Expand Down