OFBIZ-6277: Merge changes from r1675521 to Trunk:
Log: ============================================================ new Configuration() is deprecated; instead, the desired freemarker version should be passed in. To make it easier to control the version centrally, add a helper method on FreeMarkerWorker that wraps the instantiation of the Configuration object. ============================================================ git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1731380 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -376,7 +376,7 @@ public class EntitySaxReader implements javolution.xml.sax.ContentHandler, Error
|
||||
Reader templateReader = new InputStreamReader(templateUrl.openStream());
|
||||
|
||||
StringWriter outWriter = new StringWriter();
|
||||
Configuration config = new Configuration(FreeMarkerWorker.version);
|
||||
Configuration config = FreeMarkerWorker.newConfiguration();
|
||||
config.setObjectWrapper(FreeMarkerWorker.getDefaultOfbizWrapper());
|
||||
config.setSetting("datetime_format", "yyyy-MM-dd HH:mm:ss.SSS");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user