https://bz.apache.org/bugzilla/show_bug.cgi?id=59114

--- Comment #1 from Antoine Levy-Lambert <[email protected]> ---
I just committed a testcase which illustrates the current behavior of Ant
concerning the application of the "**" and the "*" pattern to the empty path.
See
https://github.com/apache/ant/commit/8bb69bfdd8201ffbd531097d95f29c8a3e88a7a6

The logic to handle the root directory of a fileset is at this location :

https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/DirectoryScanner.java#L897

My understanding is that "**" matches any length of path including file
separators, while "*" matches any length of path without the file separator.
Why "*" currently does not match the root empty directory is surprising. 

Patterns are documented here :
http://ant.apache.org/manual/dirtasks.html#patterns

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to