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] [Updated] (CAMEL-6916) PropertyPlaceHolder : IgnoreMissingLocation should protect from unresolvable system variable location
Date Sun, 10 Nov 2013 10:52:17 GMT

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

Claus Ibsen updated CAMEL-6916:
-------------------------------

    Fix Version/s: 2.13.0
                   2.12.2
                   2.11.3

> PropertyPlaceHolder : IgnoreMissingLocation should protect from unresolvable system variable
location
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6916
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6916
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.12.1
>            Reporter: S├ębastien Brousse
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.3, 2.12.2, 2.13.0
>
>         Attachments: camel-property.zip
>
>
> When you add a location based on system variable in a propertyPlaceholder, the ignoreMissingLocation
protect you from a missing file but not from a missing system variable (or env as well).
> Ex : 
> {code:xml}
> <propertyPlaceholder ignoreMissingLocation="true" location="classpath:camel-property.properties,
file:///${camel-property.config}" />
> {code}
> This configuration failed to load context during unit tests, because _camel-property.config_
system variable is not set. Spring handle this with the _ignore-resource-not-found_ attribute,
which is according to me the equivalent of ignoreMissingLocation.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message