Skip to content

Commit

Permalink
[7.67.x-blue] Update velocity engine core (#3829)
Browse files Browse the repository at this point in the history
* [7.67.x-blue] Updating velocity engine gav

Signed-off-by: Jason Porter <lightguard.jp@gmail.com>

* Updating properties for Velocity 2.1

Removing deprecated properties and setting the correct name for others
that were changed in 2.1

Signed-off-by: Jason Porter <lightguard.jp@gmail.com>

---------

Signed-off-by: Jason Porter <lightguard.jp@gmail.com>
  • Loading branch information
LightGuard committed Aug 1, 2024
1 parent 6cb65d0 commit 349026b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<!-- code adf dependencies -->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<artifactId>velocity-engine-core</artifactId>
</dependency>

<!-- java parser dependencies -->
Expand Down
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 349026b

Please sign in to comment.