velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r521395 - /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java
Date Thu, 22 Mar 2007 18:20:31 GMT
Author: nbubna
Date: Thu Mar 22 11:20:30 2007
New Revision: 521395

URL: http://svn.apache.org/viewvc?view=rev&rev=521395
Log:
replace setVelocityEngine() method for full backwards compatibility

Modified:
    velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java

Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java?view=diff&rev=521395&r1=521394&r2=521395
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java
(original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/log/LogSystemCommonsLog.java
Thu Mar 22 11:20:30 2007
@@ -19,6 +19,8 @@
  * under the License.
  */
 
+import org.apache.velocity.app.VelocityEngine;
+
 /**
  * Redirects commons-logging messages to Velocity's LogSystem.
  *
@@ -31,4 +33,13 @@
  * @deprecated Use LogChuteCommonsLog instead
  * @version $Id$
  */
-public class LogSystemCommonsLog extends LogChuteCommonsLog {}
+public class LogSystemCommonsLog extends LogChuteCommonsLog
+{
+    /**
+     * @deprecated Use LogChuteCommonsLog.setVelocityLog(Log target) instead
+     */
+    public static void setVelocityEngine(VelocityEngine target)
+    {
+        setVelocityLog(target.getLog());
+    }
+}



Mime
View raw message