[
https://issues.apache.org/activemq/browse/CAMEL-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48423#action_48423
]
Claus Ibsen commented on CAMEL-1198:
------------------------------------
D:\project\camel>svn commit --message "CAMEL-1198: Ant path matcher now also
possible with camel-ftp."
Sending
camel-core\src\main\java\org\apache\camel\component\file\FileConsumer.java
Sending
camel-core\src\main\java\org\apache\camel\util\CollectionHelper.java
Adding
camel-core\src\test\java\org\apache\camel\util\CollectionHelperTest.java
Sending components\camel-ftp\pom.xml
Adding
components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\AntPathMatcherRemoteFileFilter.java
Sending
components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\FtpConsumer.java
Sending
components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\RemoteFileConsumer.java
Sending
components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\SftpConsumer.java
Sending components\camel-spring\pom.xml
Sending
components\camel-spring\src\main\java\org\apache\camel\component\file\AntPathMatcherFileFilter.java
Sending tests\camel-itest\pom.xml
Adding tests\camel-itest\src\test\java\org\apache\camel\itest\ftp
Adding
tests\camel-itest\src\test\java\org\apache\camel\itest\ftp\SpringFileAntPathMatcherRemoteFileFilterTest.java
Sending tests\camel-itest\src\test\resources\log4j.properties
Adding tests\camel-itest\src\test\resources\org\apache\camel\itest\ftp
Adding
tests\camel-itest\src\test\resources\org\apache\camel\itest\ftp\SpringFileAntPathMatcherRemoteFileFilterTest-context.xml
Adding tests\camel-itest\src\test\resources\users.properties
Transmitting file data ...............
Committed revision 730753.
> Add pluggable File Scanning Strategies to file Poller - utilise Ant Scanning
> as one
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-1198
> URL: https://issues.apache.org/activemq/browse/CAMEL-1198
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core, camel-spring
> Affects Versions: 2.0.0
> Reporter: Ramon Buckland
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.0.0
>
>
> Add the ability for the file scanner to have a pluggable finding
> implementation.
> - Extract out the current method to one pluggable implementation
> - Add another which utilises the Ant DirectoryScanner
> the Ant DirectoryScanner gives us the ability to scan more than one
> directory tree at a time, having excludes and complex name location
> strageties.
> An example of this code in action is
> {code}
> DirectoryScanner dirScanner = new DirectoryScanner();
> dirScanner.setBasedir(myBaseDir);
> dirScanner.setIncludes(includes); // String[] - {
> "**/somedir/**/fileprefix*.csv","**/someother/dir/filepre*.txt"}
> dirScanner.setExcludes(excludes);
> ...
> dirScanner.scan();
> ..
> // work with files in dirScanner.getIncludedFiles()
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.