You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2016/03/07 04:54:25 UTC

[Bug 59114] Inconsistency in Copy Task with empty FileSet depending on "exclude" pattern

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

--- Comment #1 from Antoine Levy-Lambert <an...@apache.org> ---
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.