You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by on...@apache.org on 2023/06/03 04:49:45 UTC

[camel] branch CAMEL-19410 created (now 6898f2c888b)

This is an automated email from the ASF dual-hosted git repository.

onders pushed a change to branch CAMEL-19410
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 6898f2c888b CAMEL-19140 : fix typo and update deprected property name from constants

This branch includes the following new commits:

     new 6898f2c888b CAMEL-19140 : fix typo and update deprected property name from constants

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: CAMEL-19140 : fix typo and update deprected property name from constants

Posted by on...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

onders pushed a commit to branch CAMEL-19410
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6898f2c888b58451e5b01159afb2f85380e3cfb3
Author: onders86 <on...@gmail.com>
AuthorDate: Sat Jun 3 05:49:21 2023 +0100

    CAMEL-19140 : fix typo and update deprected property name from constants
---
 .../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");