Hi Claus,I changed the code as you indicated

from("file:c:/camel/src/data?delete=true&include=RAW(n[\\d]+\\.xml)")

Now it worked.
Thank you very much.
 


     Em Domingo, 9 de Agosto de 2015 4:10, Claus Ibsen <[email protected]> 
escreveu:
   

 Hi

You can use the raw() syntax
http://camel.apache.org/how-do-i-configure-endpoints.html

On Sun, Aug 9, 2015 at 2:58 AM, Claudio R <[email protected]> wrote:
> Hi,
> I am trying execute the java code below to process only files with name 
> (n20.xml, n25.xml etc)
>
> from("file:c:/camel/src/data?delete=true&include=n[\\d]+\\.xml")
>
> I do not want to process files with name n.xml for example.
> The problem is the Camel doesn´t catch the files in directory.
> Is it a bug?
> The reg exp (Java) is correct.
> I am using Camel version 2.14.0 with java 1.6.0_15



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

  

Reply via email to