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

View File

@ -61,17 +61,15 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
} }
public void afterPropertiesSet() throws Exception { public void afterPropertiesSet() throws Exception {
if (workingDir != null) { if (workingDir == null) {
return; 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(); start();
} }