0

I have a route configured as following:

<route>
   <from uri="file:mydir" />
   <split streaming="true" parallelProcessing="true">
       <tokenize token="\n" xml="false" trim="true" />
       <to uri="seda:requests" />
   </split>
</route>

This is running on Linux but files in "mydir" coming from applications running both on Linux (\n) and Windows (\r\n) so my split fails in the second case

How can I have one configuration for both cases?

1 Answer 1

6

Found...that was really simple:

<tokenize token="\r\n|\n" xml="false" trim="true" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.