So... I'll leave you to it then ;-) Gary
On Tue, Jun 27, 2023, 10:04 Elliotte Rusty Harold <elh...@ibiblio.org> wrote: > On Tue, Jun 27, 2023 at 9:22 AM Gary Gregory <garydgreg...@gmail.com> > wrote: > > > > I think that we are close to what Ant needs > > with org.apache.commons.io.filefilter.WildcardFileFilter. Perhaps Ant > > should just implement its own "AntWildcardFileFilter" as a copy or > subclass > > of WildcardFileFilter. > > > > Or, are you thinking that WildcardFileFilter should have a new toggle > "star > > star matches Ant's behavior"? > > > > "Toggles" aren't really OOP-native. I'd prefer a completely new class > even if much of the implementation is shared with WildcardFileFilter. > I'm still working out in my head what I think this should look like, > but a single class that implements a well-understood, well-documented > file filter syntax and otherwise can be plugged into existing classes > like Files.walkFileTree — i.e. the Strategy pattern — is probably > about as simple as we can get. > > -- > Elliotte Rusty Harold > elh...@ibiblio.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >