Make sure "start" is called even if working directory is already set.

This commit is contained in:
Luke Taylor 2007-11-06 22:18:13 +00:00
parent 7ad8e2acf0
commit b868143fb1
1 changed files with 8 additions and 10 deletions

View File

@ -61,17 +61,15 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
}
public void afterPropertiesSet() throws Exception {
if (workingDir != null) {
return;
if (workingDir == null) {
String apacheWorkDir = System.getProperty("apacheDSWorkDir");
if (apacheWorkDir == null) {
apacheWorkDir = System.getProperty("java.io.tmpdir") + File.separator + "apacheds-spring-security";
}
setWorkingDirectory(new File(apacheWorkDir));
}
String apacheWorkDir = System.getProperty("apacheDSWorkDir");
if (apacheWorkDir == null) {
apacheWorkDir = System.getProperty("java.io.tmpdir") + File.separator + "apacheds-spring-security";
}
setWorkingDirectory(new File(apacheWorkDir));
start();
}