geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/web/src/java/org/apache/geronimo/web/hack GeronimoWebApplicationContext.java
Date Mon, 08 Sep 2003 04:40:50 GMT
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;
       }
   }
  
  
  

Mime
View raw message