db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r996367 - /db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/jdbc2schema/Jdbc2SchemaTest.java
Date Sun, 12 Sep 2010 19:10:53 GMT
Author: tfischer
Date: Sun Sep 12 19:10:52 2010
New Revision: 996367

URL: http://svn.apache.org/viewvc?rev=996367&view=rev
Log:
use commons-logging instead of log4j

Modified:
    db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/jdbc2schema/Jdbc2SchemaTest.java

Modified: db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/jdbc2schema/Jdbc2SchemaTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/jdbc2schema/Jdbc2SchemaTest.java?rev=996367&r1=996366&r2=996367&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/jdbc2schema/Jdbc2SchemaTest.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/test/java/org/apache/torque/templates/jdbc2schema/Jdbc2SchemaTest.java
Sun Sep 12 19:10:52 2010
@@ -38,8 +38,9 @@ import java.util.StringTokenizer;
 import junitx.framework.FileAssert;
 
 import org.apache.commons.io.FileUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.log4j.BasicConfigurator;
-import org.apache.log4j.Logger;
 import org.apache.torque.generator.configuration.UnitDescriptor;
 import org.apache.torque.generator.configuration.option.MapOptionsConfiguration;
 import org.apache.torque.generator.configuration.paths.CustomProjectPaths;
@@ -52,8 +53,8 @@ import org.junit.Test;
 
 public class Jdbc2SchemaTest
 {
-    private static Logger logger
-            = Logger.getLogger(Jdbc2SchemaTest.class);
+    private static Log log
+            = LogFactory.getLog(Jdbc2SchemaTest.class);
 
     private static String SQL_FILENAME = "jdbc2schemaTest.sql";
 
@@ -99,7 +100,7 @@ public class Jdbc2SchemaTest
           }
           catch (SQLException e)
           {
-            logger.info(e.getMessage());
+              log.info(e.getMessage());
           }
           statement.close();
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message