camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terris Linenbach (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7710) simple: Use standard {{ }} syntax to reference values in properties files
Date Mon, 18 Aug 2014 18:00:23 GMT

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

Terris Linenbach commented on CAMEL-7710:
-----------------------------------------

{noformat}That doesn't appear to be the case with simple, which is why I created this JIRA.

Example:

<filter><simple>${body} == {{version}}</simple>

The error on start-up is:

Could not resolve placeholder 'body' in string value "${body} == 1

In other words, the context never starts.

Using ${properties:version} fixes this.{noformat}

> simple: Use standard {{ }} syntax to reference values in properties files
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-7710
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7710
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-script
>            Reporter: Terris Linenbach
>            Assignee: Claus Ibsen
>
> This is not simple:
> ${property.head[depth]} &lt;= ${properties:maxDepth}
> This is:
> ${property.head[depth]} &lt;= {{maxDepth}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message