camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10419) camel-properties : allow to individually set whether to silently ignore a missing location
Date Fri, 28 Oct 2016 08:20:58 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15614730#comment-15614730
] 

Claus Ibsen commented on CAMEL-10419:
-------------------------------------

Lets use Camel like configuration with ?mandatory=false instead, eg
{code}
pc.setLocation("file:data/properties/common.properties,file:data/properties/override.properties?mandatory=false"
{code}

> 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)

Mime
View raw message