So... I'll leave you to it then ;-)

Gary

On Tue, Jun 27, 2023, 10:04 Elliotte Rusty Harold <[email protected]>
wrote:

> On Tue, Jun 27, 2023 at 9:22 AM Gary Gregory <[email protected]>
> 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
> [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to