Make sure "start" is called even if working directory is already set.
This commit is contained in:
parent
7ad8e2acf0
commit
b868143fb1
|
@ -61,10 +61,7 @@ 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");
|
String apacheWorkDir = System.getProperty("apacheDSWorkDir");
|
||||||
|
|
||||||
if (apacheWorkDir == null) {
|
if (apacheWorkDir == null) {
|
||||||
|
@ -72,6 +69,7 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
|
||||||
}
|
}
|
||||||
|
|
||||||
setWorkingDirectory(new File(apacheWorkDir));
|
setWorkingDirectory(new File(apacheWorkDir));
|
||||||
|
}
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue