>
> c)
> I have been considering supporting the ant path style
> (**/dropOffFolder), that you have in spring resource.
> But I didn't want to write an ant path style parser and camel-core
> should not require spring.
> But that would be cool
>
>
Depend on the ant jar :-)
We use the DirScanner quite a lot in code, because it just works really
well.
The ability to have two "selectors" would be good.

   **/somedir/**/fileprefix*.csv,**/someother/dir/filepre*.txt

A snippet of ANT code doing this is simply...

DirectoryScanner dirScanner = new DirectoryScanner();
dirScanner.setBasedir(myBaseDir);
dirScanner.setIncludes(includes);  // String[]
dirScanner.setExcludes(excludes);
...
dirScanner.scan();
..
// work with files in dirScanner.getIncludedFiles()

simple :-)

r.

Reply via email to