geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r148872 - /geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java
Date Fri, 28 Jan 2005 10:40:33 GMT
Author: jules
Date: Fri Jan 28 02:40:32 2005
New Revision: 148872

URL: http://svn.apache.org/viewcvs?view=rev&rev=148872
Log:
use a proper logger

Modified:
   geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java

Modified: geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java
Url: http://svn.apache.org/viewcvs/geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java?view=diff&rev=148872&p1=geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java&r1=148871&p2=geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java&r2=148872
==============================================================================
--- geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java
(original)
+++ geronimo/trunk/modules/spring-builder/src/java/org/apache/geronimo/spring/deployment/SPRConfigBuilder.java
Fri Jan 28 02:40:32 2005
@@ -29,6 +29,8 @@
 import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.geronimo.common.DeploymentException;
 import org.apache.geronimo.deployment.ConfigurationBuilder;
 import org.apache.geronimo.deployment.DeploymentContext;
@@ -50,6 +52,7 @@
 public class SPRConfigBuilder
   implements ConfigurationBuilder
 {
+  private final Log        log=LogFactory.getLog(SPRConfigBuilder.class);
   private final Kernel     kernel;
   private final Repository repository;
   private final URI        defaultParentId;
@@ -89,7 +92,7 @@
   {
     if (sprFile==null || !sprFile.getName().endsWith(".spr")) return null;
 
-    System.out.println("PLANNING: "+sprFile.getName());
+    log.info("Planning: "+sprFile.getName());
 
     // N.B.
     // - we should check out META-INF/geronimo-spring.xml
@@ -114,7 +117,7 @@
 
     XmlBeanDefinitionReader xbdr=(XmlBeanDefinitionReader)plan;
 
-    System.out.println("BUILDING: "+sprFile.getName());
+    log.info("Building: "+sprFile.getName());
 
     try
     {

Mime
View raw message