Does the Fileset class support Ant patterns

0 votes
asked Aug 24 by vincentp (260 points)

Our app uses ant file patterns for selecting files, does the FileSet class support these or do we need to create our own descendent?

Looking at the help, it looks like it may do, with ** support, just wondering if it's intended to support any ant pattern?

1 Answer

0 votes
answered Aug 24 by Pavel Matyska (9,680 points)


I am not sure what you mean by ant file patterns other than using '**' in the path. You can use this 'wildcard' in both Include and Exclued methods, as you probably read at our file set feature page. It serves recursive search and matching file or directory deep in directory tree based at path provided to the FileSet constructor. If it doesn't suite you, you can create your own descendent, of course. How to implement it, please read this file set forum post for the start. It implements fileset based on regular expression, but you should be able to rewrite it to any ant pattern support as you need.