You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by br...@apache.org on 2004/04/05 23:18:33 UTC
svn commit: rev 9876 - xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp
Author: brondsem
Date: Mon Apr 5 14:18:31 2004
New Revision: 9876
Modified:
xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/Config.java
Log:
some property debugging
Modified: xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/Config.java
==============================================================================
--- xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/Config.java (original)
+++ xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/Config.java Mon Apr 5 14:18:31 2004
@@ -20,6 +20,7 @@
import java.io.File;
import java.io.IOException;
+import java.util.Iterator;
import java.util.Properties;
import org.apache.log4j.Logger;
@@ -46,6 +47,7 @@
configureLog4j();
configureProperties();
validateProperties();
+ debugProperties();
}
private static void configureLog4j() {
@@ -89,6 +91,14 @@
if (!f.isDirectory()) {
log.error("Property " + directoriesToCheck[i] + " must reference a directory. Current value: " + f.toString());
}
+ }
+ }
+
+ protected static void debugProperties() {
+ log.debug("properties loaded from settings.properties:");
+ for (Iterator i = p.keySet().iterator(); i.hasNext();) {
+ String key = (String)i.next();
+ log.debug(key + "=" + p.getProperty(key));
}
}