incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1233268 - /incubator/lcf/branches/CONNECTORS-388/framework/core/src/main/java/org/apache/manifoldcf/core/i18n/Messages.java
Date Thu, 19 Jan 2012 10:21:04 GMT
Author: kwright
Date: Thu Jan 19 10:21:03 2012
New Revision: 1233268

URL: http://svn.apache.org/viewvc?rev=1233268&view=rev
Log:
Tell Velocity to instantiate OUR resource loader.

Modified:
    incubator/lcf/branches/CONNECTORS-388/framework/core/src/main/java/org/apache/manifoldcf/core/i18n/Messages.java

Modified: incubator/lcf/branches/CONNECTORS-388/framework/core/src/main/java/org/apache/manifoldcf/core/i18n/Messages.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-388/framework/core/src/main/java/org/apache/manifoldcf/core/i18n/Messages.java?rev=1233268&r1=1233267&r2=1233268&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-388/framework/core/src/main/java/org/apache/manifoldcf/core/i18n/Messages.java
(original)
+++ incubator/lcf/branches/CONNECTORS-388/framework/core/src/main/java/org/apache/manifoldcf/core/i18n/Messages.java
Thu Jan 19 10:21:03 2012
@@ -53,6 +53,7 @@ public class Messages
     VelocityEngine engine = new VelocityEngine();
     // Now configure it
     org.apache.commons.collections.ExtendedProperties configuration = new org.apache.commons.collections.ExtendedProperties();
+    configuration.setProperty(VelocityEngine.RESOURCE_LOADER,MCFVelocityResourceLoader.class.getName());
     configuration.setProperty(MCFVelocityResourceLoader.CLASS_INSTANCE,classInstance);
     engine.setExtendedProperties(configuration);
     return engine;



Mime
View raw message