mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
Make sure "start" is called even if working directory is already set.
This commit is contained in:
parent
7ad8e2acf0
commit
b868143fb1
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user