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

Luca Burgazzoli commented on CAMEL-9540:
----------------------------------------

I did a quick test  on beanio (2.17-SNAPSHOT, SpringBeanIODataFormatSimpleTest) 
and the two syntax below are properly supported:

{code:xml}
<dataFormats>
  <beanio id="myBeanio" mapping="file:{{java.io.tmpdir}}/mappings.xml" 
streamName="employeeFile"/>
</dataFormats>

<dataFormats>
  <beanio id="myBeanio" mapping="file:{{env:TMPDIR}}/mappings.xml" 
streamName="employeeFile"/>
</dataFormats>
{code}

Anything I've missed ?


> ResourceHelper.resolveMandatoryResourceAsInputStream - Should support ENV and 
> properties
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-9540
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9540
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Luca Burgazzoli
>            Priority: Minor
>             Fix For: 2.17.0
>
>
> So you can refer to ENV or {{ }} placeholders.
> What needs to be done is to let the properties placeholder execute the input 
> string first.
> eg call
> org.apache.camel.CamelContext#resolvePropertyPlaceholders
> See nabble
> http://camel.465427.n5.nabble.com/Camel-beanio-mapping-file-outside-the-war-tp5776784.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to