I am encountering a problem with GlobFilenameFilter.
It correctly catches files for the pattern 'i*.html'
but not the more general '*.html'. I am using version 2.0.
Here is proof:
public static void main(String args[]) {
File srcDir = new File(args[0]);
FilenameFilter filter =
(a
Please ignore this bug report. It turns out that java was expanding
*.html to package.html (because it exists in the current working directory).
Since package.html did not exists in x nothing got printed.
I used the quotes to turn off shell globbing.
I never knew that Java did globbing too. Thi
I noticed the 4 param RegexFilenameFilter constructor
RegexFilenameFilter(cache, matcher, regex, options)
does not pass on the options to setFilterExpression.
Also, we could easily have RegexFilenameFilter also
implement both FilenameFilter and FileFilter. The
code is below. I suggest we do