|
@@ -81,7 +81,7 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
|
|
ctxt = applicationContext;
|
|
ctxt = applicationContext;
|
|
}
|
|
}
|
|
|
|
|
|
- private static boolean deleteDir(File dir) {
|
|
|
|
|
|
+ private boolean deleteDir(File dir) {
|
|
if (dir.isDirectory()) {
|
|
if (dir.isDirectory()) {
|
|
String[] children = dir.list();
|
|
String[] children = dir.list();
|
|
for (int i=0; i < children.length; i++) {
|
|
for (int i=0; i < children.length; i++) {
|
|
@@ -98,6 +98,8 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
|
|
public void setWorkingDirectory(File workingDir) {
|
|
public void setWorkingDirectory(File workingDir) {
|
|
Assert.notNull(workingDir);
|
|
Assert.notNull(workingDir);
|
|
|
|
|
|
|
|
+ logger.info("Setting working directory for LDAP: " + workingDir.getAbsolutePath());
|
|
|
|
+
|
|
if (workingDir.exists()) {
|
|
if (workingDir.exists()) {
|
|
throw new IllegalArgumentException("The specified working directory '" + workingDir.getAbsolutePath() +
|
|
throw new IllegalArgumentException("The specified working directory '" + workingDir.getAbsolutePath() +
|
|
"' already exists. Another directory service instance may be using it or it may be from a " +
|
|
"' already exists. Another directory service instance may be using it or it may be from a " +
|