【发布时间】:2011-09-20 19:14:02
【问题描述】:
使用 Camel File2,您可以对文件名设置过滤器,例如: from("file://myfiles/dir1/dir11/?recursive=true& include=*.xml")
http://camel.apache.org/file2 如果使用了诸如 include 或 exclude 之类的选项,则只有文件(不是目录)匹配有效的文件名。
我还想过滤文件名,例如: from("file://myfiles/dir1//.xml?recursive=true)
这可能吗?
我看到有一个 AntPathMatcher 类允许这种类型的过滤器:http://fusesource.com/docs/router/2.6/apidoc/org/apache/camel/core/xml/scan/AntPathMatcher.html 但我不知道如何使用它(不使用 Ant)?
【问题讨论】:
标签: apache-camel