Hi The exclude/include options uses the Java regular expression. And with that its possible to make OR matching. For example just create a java main and do a little java code to get the regular expression as you want. Or possible use some plugin in an IDE that offers a regexp tool.
The antInclude/antExclude options is part of Camel 2.10 which is not released yet. Otherwise you can use the filter option and write a GenericFileFilter class that returns a boolean whether to accept the file or not. On Fri, Mar 23, 2012 at 2:56 PM, Laurentiu Trica <laurentiu.tr...@moredevs.ro> wrote: > Hi, > > I need help with Spring DSL for using two excluding expressions for File / > FTP consumer. > I am using the *exclude* option but I don't know how to match two patterns. > > I saw something about antExclude here: > http://camel.apache.org/file2.html#File2-FilteringusingANTpathmatcher > > Is that the only option I have? I would like to keep the route as clean and > reusable as possible... > > Thanks in advance, > Laurentiu Trica -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/