Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-29 Thread Gary Gregory
On my end, I'll make sure IO filters can interoperate with PathMatchers if they don't already... Gary On Thu, Jun 29, 2023, 09:10 Elliotte Rusty Harold wrote: > On Thu, Jun 29, 2023 at 8:12 AM Gary Gregory > wrote: > > > > On Thu, Jun 29, 2023 at 7:20 AM Elliotte Rusty Harold > > wrote: > >

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-29 Thread Elliotte Rusty Harold
On Thu, Jun 29, 2023 at 8:12 AM Gary Gregory wrote: > > On Thu, Jun 29, 2023 at 7:20 AM Elliotte Rusty Harold > wrote: > I'm not sure what you are proposing. Adding a new filter to IO that > behaves like Ant? Adding a new filter to IO that behaves like Python? > Are Ant and Python expressions _e

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-29 Thread Slawomir Jaranowski
It is common pattern called globstar, eg from https://en.wikipedia.org/wiki/Glob_(programming): globstar: allows ** on its own as a name component to recursively match any number of layers of non-hidden directories.[10] Also supported by the JS libraries and Python's glob. so it is not only an An

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-29 Thread Gary Gregory
On Thu, Jun 29, 2023 at 7:20 AM Elliotte Rusty Harold wrote: > > On Mon, Jun 19, 2023 at 8:17 PM Gary Gregory wrote: > > > I like the general idea of adding configurable include and exclude features. > > > > I am uncertain about baking in the Ant-specific pattern formats in > > Commons IO. Allowi

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-29 Thread Elliotte Rusty Harold
On Mon, Jun 19, 2023 at 8:17 PM Gary Gregory wrote: > I like the general idea of adding configurable include and exclude features. > > I am uncertain about baking in the Ant-specific pattern formats in > Commons IO. Allowing the include and exclude feature to be provided > through some interfaces

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-27 Thread Gary Gregory
So... I'll leave you to it then ;-) Gary On Tue, Jun 27, 2023, 10:04 Elliotte Rusty Harold wrote: > On Tue, Jun 27, 2023 at 9:22 AM Gary Gregory > wrote: > > > > I think that we are close to what Ant needs > > with org.apache.commons.io.filefilter.WildcardFileFilter. Perhaps Ant > > should jus

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-27 Thread Elliotte Rusty Harold
On Tue, Jun 27, 2023 at 9:22 AM Gary Gregory 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 thinkin

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-27 Thread Gary Gregory
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 matc

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-27 Thread Elliotte Rusty Harold
On Mon, Jun 19, 2023 at 8:17 PM Gary Gregory wrote: > > I like the general idea of adding configurable include and exclude features. > > I am uncertain about baking in the Ant-specific pattern formats in > Commons IO. Allowing the include and exclude feature to be provided > through some interface

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-21 Thread Gary Gregory
I think you could achieve what you want today using the existing PathFilter hierarchy plus a custom Ant PathFilter. WDYT? Gary On Mon, Jun 19, 2023, 20:17 Gary Gregory wrote: > Hi Elliotte, > > On Mon, Jun 19, 2023 at 4:08 PM Elliotte Rusty Harold > wrote: > > > > I'm working on a longterm pr

Re: [io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-19 Thread Gary Gregory
Hi Elliotte, On Mon, Jun 19, 2023 at 4:08 PM Elliotte Rusty Harold wrote: > > I'm working on a longterm project to remove a lot of duplicate code > and assorted dependencies from Apache Maven by migrating many of our > utilities to Apache Commons equivalents or near-equivalents. In > particular I

[io] Possible addition of getFiles/getFileNames and Ant includes/excludes

2023-06-19 Thread Elliotte Rusty Harold
I'm working on a longterm project to remove a lot of duplicate code and assorted dependencies from Apache Maven by migrating many of our utilities to Apache Commons equivalents or near-equivalents. In particular I'd much prefer to use Apache Commons IO to handle a lot of file system related tasks r