[ 
https://issues.apache.org/activemq/browse/CAMEL-920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45818#action_45818
 ] 

Claus Ibsen commented on CAMEL-920:
-----------------------------------

Well is there any use cases for being able to exclude/regex directories also? I 
doubt it

I will change the matching to be *files only* except that any directories 
starting with a "." (dot) will also be skipped.

> file component consumer.regexPattern does not work as expected (matching is 
> applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : 
> from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, 
> regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting 
> directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to