Added logging of working directory location.

This commit is contained in:
Luke Taylor 2007-12-20 18:29:05 +00:00
parent 85b10f79c2
commit 78e376312a

View File

@ -81,7 +81,7 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
ctxt = applicationContext;
}
private static boolean deleteDir(File dir) {
private boolean deleteDir(File dir) {
if (dir.isDirectory()) {
String[] children = dir.list();
for (int i=0; i < children.length; i++) {
@ -98,6 +98,8 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
public void setWorkingDirectory(File workingDir) {
Assert.notNull(workingDir);
logger.info("Setting working directory for LDAP: " + workingDir.getAbsolutePath());
if (workingDir.exists()) {
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 " +