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
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.