You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sébastien Brousse (JIRA)" <ji...@apache.org> on 2013/10/31 16:05:20 UTC
[jira] [Comment Edited] (CAMEL-6916) PropertyPlaceHolder :
IgnoreMissingLocation should protect from unresolvable system variable
location
[ https://issues.apache.org/jira/browse/CAMEL-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810302#comment-13810302 ]
Sébastien Brousse edited comment on CAMEL-6916 at 10/31/13 3:04 PM:
--------------------------------------------------------------------
I may have not explained very well.
I have a slighly different use case, I don't want my test to fail even if I don't have the system variable set, which mean the location of file:///${camel-property.config} is missing or unresolvable.
The ignoreUnresovablePlaceholders means, according to me, that unresolved property keys inside file should be ignored, which is not what I am looking for.
This a just a matters of saying if it is a unresolved system key problem or an unresolved location problem.
was (Author: seb_brousse):
I may have not explained very well.
I have a slighly different use case, I don't want my test to fail even if I don't have the system variable set, which mean the location of file:///${camel-property.config} is missing or unresolvable.
The ignoreUnresovablePlaceholders means, according to me, that unresolved property keys inside file should be ignored, which is not what I am looking for.
> 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
> Priority: Minor
> 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)