External data location configuration fails (path.data setting), closes #1429.
This commit is contained in:
parent
49a97f6fcf
commit
99e2bb270c
|
@ -106,13 +106,7 @@ public class InternalSettingsPerparer {
|
||||||
|
|
||||||
// put back the env settings
|
// put back the env settings
|
||||||
settingsBuilder = settingsBuilder().put(v1);
|
settingsBuilder = settingsBuilder().put(v1);
|
||||||
settingsBuilder.put("path.home", cleanPath(environment.homeFile().getAbsolutePath()));
|
// we put back the path.logs so we can use it in the logging configuration file
|
||||||
settingsBuilder.put("path.work", cleanPath(environment.workFile().getAbsolutePath()));
|
|
||||||
String[] paths = new String[environment.dataFiles().length];
|
|
||||||
for (int i = 0; i < environment.dataFiles().length; i++) {
|
|
||||||
paths[i] = cleanPath(environment.dataFiles()[i].getAbsolutePath());
|
|
||||||
}
|
|
||||||
settingsBuilder.putArray("path.data", paths);
|
|
||||||
settingsBuilder.put("path.logs", cleanPath(environment.logsFile().getAbsolutePath()));
|
settingsBuilder.put("path.logs", cleanPath(environment.logsFile().getAbsolutePath()));
|
||||||
|
|
||||||
v1 = settingsBuilder.build();
|
v1 = settingsBuilder.build();
|
||||||
|
|
Loading…
Reference in New Issue