forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject svn commit: rev 9876 - xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp
Date Mon, 05 Apr 2004 21:18:33 GMT
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));
 		}
 	}
 

Mime
View raw message