Skip to content

Commit 962feab

Browse files
committed
[bugfix] Set EXIST_HOME so system:get-exist-home() returns a value.
1 parent 63d694c commit 962feab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

exist-core/src/main/java/org/exist/util/Configuration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,12 @@ public Configuration(@Nullable String configFilename, Optional<Path> existHomeDi
271271
if (is != null) {
272272
LOG.info("Reading configuration from classloader");
273273
configFilePath = Optional.of(Path.of(Configuration.class.getClassLoader().getResource(configFilename).toURI()));
274+
existHome = configFilePath.map(p -> p.getParent().getParent());
274275
}
275276
} catch (final Exception e) {
276277
// EB: ignore and go forward, e.g. in case there is an absolute
277278
// file name for configFileName
278-
LOG.debug(e);
279+
LOG.debug("Error reading configuration from classloader: {}", e.getMessage(), e);
279280
}
280281

281282
existHomeDirname = existHomeDirname.map(Path::normalize);

0 commit comments

Comments
 (0)