[
https://issues.apache.org/jira/browse/CAMEL-10419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luca Burgazzoli resolved CAMEL-10419.
-------------------------------------
Resolution: Fixed
> camel-properties : allow to individually set whether to silently ignore a
> missing location
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-10419
> URL: https://issues.apache.org/jira/browse/CAMEL-10419
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Minor
> Fix For: 2.19.0
>
>
> As today it is possible to set if missing location can be ignored as global
> option so it is not possible to set mandatory and optional locations.
> It would be nice to have something like:
> {code:java}
> PropertiesComponent pc = new PropertiesComponent();
> pc.setLocations(
> pc.propertiesLocation("file:data/properties/common.properties"),
> pc.optionalPropertiesLocation("file:data/properties/override.properties")
> );
> {code}
> {code:java}
> PropertiesComponent pc = new PropertiesComponent();
> pc.setLocation("file:data/properties/common.properties,file:data/properties/override.properties;mandatory=false"
> {code}
> If not explicit set, the value set on PropertiesComponent should be taken.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)