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
|
||||
settingsBuilder = settingsBuilder().put(v1);
|
||||
settingsBuilder.put("path.home", cleanPath(environment.homeFile().getAbsolutePath()));
|
||||
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);
|
||||
// we put back the path.logs so we can use it in the logging configuration file
|
||||
settingsBuilder.put("path.logs", cleanPath(environment.logsFile().getAbsolutePath()));
|
||||
|
||||
v1 = settingsBuilder.build();
|
||||
|
|
Loading…
Reference in New Issue