You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2016/10/28 08:07:58 UTC

[jira] [Work started] (CAMEL-10419) camel-properties : allow to individually set whether to silently ignore a missing location

     [ https://issues.apache.org/jira/browse/CAMEL-10419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-10419 started by Luca Burgazzoli.
-----------------------------------------------
> 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)