db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r594893 - /db/torque/generator/trunk/src/java/org/apache/torque/task/TorqueDataModelTask.java
Date Wed, 14 Nov 2007 14:18:01 GMT
Author: tfischer
Date: Wed Nov 14 06:18:00 2007
New Revision: 594893

URL: http://svn.apache.org/viewvc?rev=594893&view=rev
Log:
Corrected a velocity context entry when the templates are loaded from file (the template path
was not passed to the ResourceLoader).
The error was introduced when the new ResourceFileLoader for Texen was added.

Modified:
    db/torque/generator/trunk/src/java/org/apache/torque/task/TorqueDataModelTask.java

Modified: db/torque/generator/trunk/src/java/org/apache/torque/task/TorqueDataModelTask.java
URL: http://svn.apache.org/viewvc/db/torque/generator/trunk/src/java/org/apache/torque/task/TorqueDataModelTask.java?rev=594893&r1=594892&r2=594893&view=diff
==============================================================================
--- db/torque/generator/trunk/src/java/org/apache/torque/task/TorqueDataModelTask.java (original)
+++ db/torque/generator/trunk/src/java/org/apache/torque/task/TorqueDataModelTask.java Wed
Nov 14 06:18:00 2007
@@ -446,13 +446,14 @@
             if (templatePath != null)
             {
                 log("Using templatePath: " + templatePath, project.MSG_VERBOSE);
-                ve.setProperty(VelocityEngine.FILE_RESOURCE_LOADER_PATH,
+                ve.setProperty("torque" + VelocityEngine.FILE_RESOURCE_LOADER_PATH,
                         templatePath);
 
                 // TR: We need our own FileResourceLoader
                 ve.addProperty(VelocityEngine.RESOURCE_LOADER, "torquefile");
                 ve.setProperty("torquefile." + VelocityEngine.RESOURCE_LOADER
-                        + ".instance", new TorqueFileResourceLoader(this));
+                            + ".instance",
+                        new TorqueFileResourceLoader(this));
             }
 
             if (useClasspath)



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