Hi

I'm trying to get the stdout of an exec command to be used in my header. 

stdout is putting a linebreak on the end of the string I want to put into my
header and this is causing trouble later on (difficulty with regex and I'm
not sure what else).

I see Simple strips whitespace by default (trim="true"). How can I get it to
ditch any line-breaks?

Here's what I've got.

<to uri="exec:hackapartPDFtoGetDeliveryNo.sh">
<convertBodyTo type="String"/>
<setHeader headerName="DeliveryNoFromPDF">
        <simple>${body}</simple>
</setHeader>
<log message="DeliveryNoFromPDF is ${in.header.DeliveryNoFromPDF}"></log>

Any thoughts?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Simple-deal-with-line-breaks-tp5774105.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to