This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new f6c1d2d42 royale-maven-plugin: fix Velocity warnings for deprecated
configuration properties
f6c1d2d42 is described below
commit f6c1d2d420c78c3409adbb87336f8967283e77f2
Author: Josh Tynjala <[email protected]>
AuthorDate: Fri Jun 28 08:29:13 2024 -0700
royale-maven-plugin: fix Velocity warnings for deprecated configuration
properties
---
.../src/main/java/org/apache/royale/maven/BaseMojo.java | 6 +++---
.../src/main/java/org/apache/royale/maven/CompileTestsMojo.java | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java
b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java
index e929f337a..8bb7d40a8 100644
--- a/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java
+++ b/royale-maven-plugin/src/main/java/org/apache/royale/maven/BaseMojo.java
@@ -329,10 +329,10 @@ public abstract class BaseMojo
}
VelocityEngine velocityEngine = new VelocityEngine();
- velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADER,
"classpath");
- velocityEngine.setProperty("classpath.resource.loader.class",
ClasspathResourceLoader.class.getName());
+ velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADERS,
"classpath");
+ velocityEngine.setProperty("resource.loader.classpath.class",
ClasspathResourceLoader.class.getName());
velocityEngine.setProperty(RuntimeConstants.SPACE_GOBBLING, "bc");
- velocityEngine.setProperty("directive.if.emptycheck", false);
+ velocityEngine.setProperty(RuntimeConstants.CHECK_EMPTY_OBJECTS,
false);
velocityEngine.setProperty("runtime.conversion.handler", "none");
velocityEngine.init();
VelocityContext context = getVelocityContext();
diff --git
a/royale-maven-plugin/src/main/java/org/apache/royale/maven/CompileTestsMojo.java
b/royale-maven-plugin/src/main/java/org/apache/royale/maven/CompileTestsMojo.java
index 3108a5798..18f4fd539 100644
---
a/royale-maven-plugin/src/main/java/org/apache/royale/maven/CompileTestsMojo.java
+++
b/royale-maven-plugin/src/main/java/org/apache/royale/maven/CompileTestsMojo.java
@@ -224,10 +224,10 @@ public class CompileTestsMojo extends BaseMojo {
}
VelocityEngine velocityEngine = new VelocityEngine();
- velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADER,
"classpath");
- velocityEngine.setProperty("classpath.resource.loader.class",
ClasspathResourceLoader.class.getName());
+ velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADERS,
"classpath");
+ velocityEngine.setProperty("resource.loader.classpath.class",
ClasspathResourceLoader.class.getName());
velocityEngine.setProperty(RuntimeConstants.SPACE_GOBBLING, "bc");
- velocityEngine.setProperty("directive.if.emptycheck", false);
+ velocityEngine.setProperty(RuntimeConstants.CHECK_EMPTY_OBJECTS,
false);
velocityEngine.setProperty("runtime.conversion.handler", "none");
velocityEngine.init();
VelocityContext context =
getTestsApplicationVelocityContext(testQualifiedNames);