camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbuzzard <>
Subject Passing filename to EXEC
Date Mon, 06 Dec 2010 17:47:26 GMT

I created a route in Java that passed the filename to a Camel Exec function
like this:

  public void configure() throws Exception {
    .setHeader("CamelExecCommandArgs", simple(" ${file:name}"))
 and this worked perfectly.  How would I define this route using SpringDSL?

I unsuccessfully tried the following:

     <from uri="file:c:/aaa/FromZip"/>
     <to uri="exec:c:/aaa/Scripts/test.bat"/>

It would be really nice if I could get something like the following to work:

     <from uri="file:c:/aaa/FromZip"/>
     <to uri="exec:c:/aaa/Scripts/test.bat?args=${file:name}"/>

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message