2006/unicorn/src/org/w3c/unicorn/util TemplateHelper.java,1.1.2.2,1.1.2.3

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv551/src/org/w3c/unicorn/util

Modified Files:
      Tag: dev2
	TemplateHelper.java 
Log Message:
uses Framework velocity engine

Index: TemplateHelper.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Attic/TemplateHelper.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- TemplateHelper.java	12 Aug 2009 17:28:04 -0000	1.1.2.2
+++ TemplateHelper.java	24 Aug 2009 09:19:56 -0000	1.1.2.3
@@ -19,6 +19,7 @@
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.VelocityEngine;
 import org.apache.velocity.runtime.RuntimeConstants;
+import org.w3c.unicorn.Framework;
 
 /**
  * TemplateHelper provides functionalities to merge properties object, to load
@@ -32,12 +33,15 @@
 
 	private static VelocityContext context = new VelocityContext();
 
-	private static VelocityEngine engine = new VelocityEngine();
+	private static VelocityEngine engine; // = new VelocityEngine();
 
 	public static void init() {
+		
+		engine = Framework.getVelocityEngine();
+		
 		//Properties aProperties = new Properties();
 		
-		Properties aProperties = Property.getProps("velocity.properties");
+		/*Properties aProperties = Property.getProps("velocity.properties");
 		
 		try {
 			//aProperties.load(Property.getPropertyFileURL("velocity.properties")
@@ -56,7 +60,8 @@
 		} catch (Exception e) {
 			// TODO Auto-generated catch block
 			e.printStackTrace();
-		}
+		}*/
+		
 	}
 
 	@SuppressWarnings("finally")

Received on Monday, 24 August 2009 09:20:07 UTC