mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-09 06:50:05 +00:00
Added logging of working directory location.
This commit is contained in:
parent
85b10f79c2
commit
78e376312a
@ -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 " +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user