Update deprecated Velocity configuration keys. #8192

This commit is contained in:
Mark H. Wood
2022-03-24 12:10:50 -04:00
parent 5f66bda96e
commit 488fffce56
2 changed files with 5 additions and 6 deletions

View File

@@ -927,7 +927,6 @@
<dependency> <dependency>
<groupId>org.apache.velocity</groupId> <groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId> <artifactId>velocity-engine-core</artifactId>
<type>jar</type>
</dependency> </dependency>
<dependency> <dependency>

View File

@@ -152,14 +152,14 @@ public class Email {
private static final String RESOURCE_REPOSITORY_NAME = "Email"; private static final String RESOURCE_REPOSITORY_NAME = "Email";
private static final Properties VELOCITY_PROPERTIES = new Properties(); private static final Properties VELOCITY_PROPERTIES = new Properties();
static { static {
VELOCITY_PROPERTIES.put(Velocity.RESOURCE_LOADER, "string"); VELOCITY_PROPERTIES.put(Velocity.RESOURCE_LOADERS, "string");
VELOCITY_PROPERTIES.put("string.resource.loader.description", VELOCITY_PROPERTIES.put("resource.loader.string.description",
"Velocity StringResource loader"); "Velocity StringResource loader");
VELOCITY_PROPERTIES.put("string.resource.loader.class", VELOCITY_PROPERTIES.put("resource.loader.string.class",
StringResourceLoader.class.getName()); StringResourceLoader.class.getName());
VELOCITY_PROPERTIES.put("string.resource.loader.repository.name", VELOCITY_PROPERTIES.put("resource.loader.string.repository.name",
RESOURCE_REPOSITORY_NAME); RESOURCE_REPOSITORY_NAME);
VELOCITY_PROPERTIES.put("string.resource.loader.repository.static", VELOCITY_PROPERTIES.put("resource.loader.string.repository.static",
"false"); "false");
} }