db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1148423 - in /db/torque/torque4/trunk/torque-generator: pom.xml src/main/java/org/apache/torque/generator/template/velocity/VelocityOutlet.java
Date Tue, 19 Jul 2011 16:05:12 GMT
Author: tfischer
Date: Tue Jul 19 16:05:11 2011
New Revision: 1148423

URL: http://svn.apache.org/viewvc?rev=1148423&view=rev
Log:
upgrade to newest velocity version

Modified:
    db/torque/torque4/trunk/torque-generator/pom.xml
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityOutlet.java

Modified: db/torque/torque4/trunk/torque-generator/pom.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/pom.xml?rev=1148423&r1=1148422&r2=1148423&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/pom.xml (original)
+++ db/torque/torque4/trunk/torque-generator/pom.xml Tue Jul 19 16:05:11 2011
@@ -36,9 +36,9 @@
 
   <dependencies>
     <dependency>
-      <groupId>velocity</groupId>
+      <groupId>org.apache.velocity</groupId>
       <artifactId>velocity</artifactId>
-      <version>1.4</version>
+      <version>1.7</version>
     </dependency>
     <dependency>
       <groupId>commons-logging</groupId>

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityOutlet.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityOutlet.java?rev=1148423&r1=1148422&r2=1148423&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityOutlet.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityOutlet.java
Tue Jul 19 16:05:11 2011
@@ -21,6 +21,7 @@ package org.apache.torque.generator.temp
 
 import java.io.StringWriter;
 import java.io.Writer;
+import java.util.Properties;
 import java.util.Set;
 
 import org.apache.commons.logging.Log;
@@ -41,6 +42,8 @@ import org.apache.torque.generator.varia
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.Velocity;
 import org.apache.velocity.context.Context;
+import org.apache.velocity.runtime.RuntimeConstants;
+import org.apache.velocity.runtime.log.Log4JLogChute;
 import org.apache.velocity.util.StringUtils;
 
 /**
@@ -210,7 +213,14 @@ public class VelocityOutlet extends Temp
         {
             try
             {
-                Velocity.init();
+                Properties properties = new Properties();
+                properties.put(
+                        RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
+                        Log4JLogChute.class.getName());
+                properties.put(
+                        RuntimeConstants.RUNTIME_LOG,
+                        "");
+                Velocity.init(properties);
             }
             catch (Exception e)
             {



---------------------------------------------------------------------
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