Hello,

Is it possible to use values that have been set in the header (setHeader) or
in a property (setProperty) to changes the arguments given to the Camel-exec
component ?
Here under is an example of what I have in mind:

        <from uri="direct:test" />

        <setProperty
propertyName="InputFile"><constant>test.csv</constant></setProperty>
        <setHeader headerName="Arguments"><constant>ok 
123</constant></setHeader>

        <to uri="exec:perl?args=perl.pl ${property.InputFile}
${in.headers.Arguments}$&amp;workingDir=target\classes" />
        <log message="Executing Perl perl.pl" loggingLevel="INFO" 
logName="myLog"/>

        <to ref="out" />

Thank in advance,

Olivier
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Exec-Properties-and-Header-values-in-URI-tp1046744p1046744.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Reply via email to