Skip to content

Commit

Permalink
Updating properties for Velocity 2.1
Browse files Browse the repository at this point in the history
Removing deprecated properties and setting the correct name for others
that were changed in 2.1

Signed-off-by: Jason Porter <[email protected]>
  • Loading branch information
LightGuard committed Jul 30, 2024
1 parent 0bd64f4 commit f3724ee
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,9 @@ private void init() throws Exception {
// Init velocity engine
Properties properties = new Properties();

properties.setProperty("resource.loader", "class");
properties.setProperty("class.resource.loader.description", "Velocity Classpath Resource Loader");
properties.setProperty("class.resource.loader.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");

//TODO REVIEW THIS
properties.setProperty( RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.JdkLogChute");
properties.setProperty("resource.loaders", "class");
properties.setProperty("resource.loader.class.description", "Velocity Classpath Resource Loader");
properties.setProperty("resource.loader.class.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");

// init velocity engine
velocityEngine.init(properties);
Expand Down

0 comments on commit f3724ee

Please sign in to comment.