Hi Meissa,

  I've read it quickly. But, it may be that just need to include xml files
and that's all:
from("file:loans?include=.*xml")

Regards,
Alex

On Wed, Feb 21, 2018 at 8:53 AM, Meissa Sakho <mbsa...@gmail.com> wrote:

> Hello everyone,
> I need to write a route with the requirements below:
> 1) The route will pool a source folder and takes only files whose name ends
> with .xml
> 2) The source file content must be saved into a single journal file named
> loan.xml
> 3)If a file name ends with .txt, it should not be included in the message.
>
> I'm trying to combine the include and the exclude option to achieve this.
> Below is an extract of my route:
>
> public void configure() throws Exception {
>
>    from("file:loans?include=.*xml&exclude=.*txt")
>    .to("file:loans/results?fileName=loan.txt&fileExist=Append");
>
>
> It's not working as expected.
> Do you have any idea about how to include only files ending with a defined
> value and excluding others?
>
> thanks,
> Meissa
>

Reply via email to