Skip to content

Commit bb79c01

Browse files
committed
Polished
1 parent 5528d70 commit bb79c01

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/camel-api/src/main/java/org/apache/camel/spi/PropertiesComponent.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,14 @@ default Map<String, Object> loadPropertiesAsMap(Predicate<String> filter) {
170170

171171
/**
172172
* A list of locations to load properties. You can use comma to separate multiple locations. This option will
173-
* override any default locations and only use the locations from this option.
173+
* override any default locations and only use the locations from this option. Camel loads by default from
174+
* classpath, so use file: as prefix to load from file system.
174175
*/
175176
void setLocation(String location);
176177

177178
/**
178179
* Adds the list of locations to the current locations, where to load properties. You can use comma to separate
179-
* multiple locations.
180+
* multiple locations. Camel loads by default from classpath, so use file: as prefix to load from file system.
180181
*/
181182
void addLocation(String location);
182183

core/camel-main/src/main/java/org/apache/camel/main/MainCommandLineSupport.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ protected void doProcess(String arg, String parameter, LinkedList<String> remain
155155
});
156156
addOption(new ParameterOption(
157157
"pl", "propertiesLocation",
158-
"Sets location(s) to load properties, such as from classpath or file system.",
158+
"Sets location(s) to load properties, such as from classpath or file system."
159+
+ " You can use comma to separate multiple locations. Camel loads by default from classpath, so use file: as prefix to load from file system.",
159160
"propertiesLocation") {
160161
protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {
161162
setPropertyPlaceholderLocations(parameter);

0 commit comments

Comments
 (0)