This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push: new 2ba07cc1d19 CAMEL-19140 : fix typo and update deprected property name from constants (#10260) 2ba07cc1d19 is described below commit 2ba07cc1d19c3292cc687f2399919a7beb28550a Author: önder sezgin <ondersezgin+git...@gmail.com> AuthorDate: Sat Jun 3 07:11:54 2023 +0100 CAMEL-19140 : fix typo and update deprected property name from constants (#10260) --- .../camel/component/velocity/CamelVelocityDelegateClassLoader.java | 4 ++-- .../java/org/apache/camel/component/velocity/VelocityEndpoint.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java index adf0858000f..325c43ea09c 100644 --- a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java +++ b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java @@ -20,7 +20,7 @@ package org.apache.camel.component.velocity; * This class loader is used to help us load the CamelVelocityClasspathResourceLoader in OSGi */ public class CamelVelocityDelegateClassLoader extends ClassLoader { - private static final String CAMLE_VELOCITY_CLASSPATH_RESOURCE_LOADER + private static final String CAMEL_VELOCITY_CLASSPATH_RESOURCE_LOADER = CamelVelocityClasspathResourceLoader.class.getName(); CamelVelocityDelegateClassLoader(ClassLoader parent) { @@ -29,7 +29,7 @@ public class CamelVelocityDelegateClassLoader extends ClassLoader { @Override protected Class<?> findClass(String name) throws ClassNotFoundException { - if (CAMLE_VELOCITY_CLASSPATH_RESOURCE_LOADER.equals(name)) { + if (CAMEL_VELOCITY_CLASSPATH_RESOURCE_LOADER.equals(name)) { return CamelVelocityClasspathResourceLoader.class; } return super.findClass(name); diff --git a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java index 64e09c102f5..9216f49fde3 100644 --- a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java +++ b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java @@ -86,7 +86,7 @@ public class VelocityEndpoint extends ResourceEndpoint { // set default properties Properties properties = new Properties(); properties.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_CACHE, isLoaderCache() ? "true" : "false"); - properties.setProperty(RuntimeConstants.RESOURCE_LOADER, "file, class"); + properties.setProperty(RuntimeConstants.RESOURCE_LOADERS, "file, class"); properties.setProperty("resource.loader.class.description", "Camel Velocity Classpath Resource Loader"); properties.setProperty("resource.loader.class.class", CamelVelocityClasspathResourceLoader.class.getName()); final Logger velocityLogger = LoggerFactory.getLogger("org.apache.camel.maven.Velocity");