camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Nygard <cjnyg...@gmail.com>
Subject Re: Case insensitive file pattern matcher. Not Ant Pattern Matcher
Date Tue, 17 Nov 2015 14:35:42 GMT
Implement your own PathMatcher class and use regex internally instead of
the Ant patterns?  Ant patterns are more like file globs than the regex
you're looking for.

On Mon, Nov 16, 2015 at 6:53 PM, dwarakart <dwaraka.ramana@gmail.com> wrote:

> Hi All,
>
> After going through the documentation of FileEndpoint and FileConsumer, I
> realized there is no direct way of using the fileName include/exclude with
> an  input pattern with case sensitivity.
>
> Ex: if the include format is [0-9]{8}_[0-9]{6}_abc.txt
>
> and I need to match bot the below
> 20151116_103000_abc.txt
> 20151116_123030_Abc.txt
>
> but the below files should not be matched
> 20151116_123_abc.txt
>
> This couldnt be achieved using the AntPathMatcherGenericFileFilter. Please
> suggest if there is a way I can implement the same.
>
> Thanks
> Dwarakart
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Case-insensitive-file-pattern-matcher-Not-Ant-Pattern-Matcher-tp5773964.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message