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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new bb79c01c805 Polished
bb79c01c805 is described below

commit bb79c01c8059f4d375085995e4ea4ae42031f68c
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Jan 9 10:28:07 2025 +0100

    Polished
---
 .../src/main/java/org/apache/camel/spi/PropertiesComponent.java      | 5 +++--
 .../src/main/java/org/apache/camel/main/MainCommandLineSupport.java  | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/core/camel-api/src/main/java/org/apache/camel/spi/PropertiesComponent.java 
b/core/camel-api/src/main/java/org/apache/camel/spi/PropertiesComponent.java
index e078809d11e..fc1d586cfc0 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/PropertiesComponent.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/PropertiesComponent.java
@@ -170,13 +170,14 @@ public interface PropertiesComponent extends 
StaticService {
 
     /**
      * A list of locations to load properties. You can use comma to separate 
multiple locations. This option will
-     * override any default locations and only use the locations from this 
option.
+     * override any default locations and only use the locations from this 
option. Camel loads by default from
+     * classpath, so use file: as prefix to load from file system.
      */
     void setLocation(String location);
 
     /**
      * Adds the list of locations to the current locations, where to load 
properties. You can use comma to separate
-     * multiple locations.
+     * multiple locations. Camel loads by default from classpath, so use file: 
as prefix to load from file system.
      */
     void addLocation(String location);
 
diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java
 
b/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java
index bbeb3bf33f6..104dc0d1704 100644
--- 
a/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java
+++ 
b/core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java
@@ -155,7 +155,8 @@ public abstract class MainCommandLineSupport extends 
MainSupport {
         });
         addOption(new ParameterOption(
                 "pl", "propertiesLocation",
-                "Sets location(s) to load properties, such as from classpath 
or file system.",
+                "Sets location(s) to load properties, such as from classpath 
or file system."
+                                            + " You can use comma to separate 
multiple locations. Camel loads by default from classpath, so use file: as 
prefix to load from file system.",
                 "propertiesLocation") {
             protected void doProcess(String arg, String parameter, 
LinkedList<String> remainingArgs) {
                 setPropertyPlaceholderLocations(parameter);

Reply via email to