External data location configuration fails (path.data setting), closes #1429.

This commit is contained in:
Shay Banon 2011-10-27 01:30:33 +02:00
parent 49a97f6fcf
commit 99e2bb270c
1 changed files with 1 additions and 7 deletions

View File

@ -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();