ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59114] Inconsistency in Copy Task with empty FileSet depending on "exclude" pattern
Date Mon, 07 Mar 2016 03:54:25 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59114

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

Mime
View raw message