You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by da...@apache.org on 2003/09/08 06:40:50 UTC
cvs commit: incubator-geronimo/modules/web/src/java/org/apache/geronimo/web/hack GeronimoWebApplicationContext.java
dain 2003/09/07 21:40:50
Modified: modules/web/src/java/org/apache/geronimo/web/hack
GeronimoWebApplicationContext.java
Log:
Added logging code.
Revision Changes Path
1.2 +8 -2 incubator-geronimo/modules/web/src/java/org/apache/geronimo/web/hack/GeronimoWebApplicationContext.java
Index: GeronimoWebApplicationContext.java
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/web/src/java/org/apache/geronimo/web/hack/GeronimoWebApplicationContext.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- GeronimoWebApplicationContext.java 5 Sep 2003 10:26:17 -0000 1.1
+++ GeronimoWebApplicationContext.java 8 Sep 2003 04:40:50 -0000 1.2
@@ -58,6 +58,9 @@
import java.net.URL;
import java.net.URLClassLoader;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
import org.mortbay.jetty.servlet.WebApplicationContext;
/**
@@ -67,6 +70,7 @@
*/
public class GeronimoWebApplicationContext extends WebApplicationContext {
private static final String SEPERATOR = System.getProperty("path.separator");
+ private final Log log = LogFactory.getLog(this.getClass());
public GeronimoWebApplicationContext() {
}
@@ -96,7 +100,9 @@
cl = cl.getParent();
}
String s = path.toString();
- System.out.println("classpath = " + s);
+ if(log.isTraceEnabled()) {
+ log.trace("File Class Path = " + s);
+ }
return s;
}
}