It looks like the regex optimization broke an edge case:

**/* now matches the base directory, as well as any subdirectories on a FileSet.DirectoryNames call. For instance, in the following directory structure, all three will be matched with a base directory of "C:\foo":

C:\foo
C:\foo\bar
C:\foo\baz

The old behaviour would only match the two subdirectories.

Is this behaviour important to anyone? This is actually more consistent, considering that:

file/**/*.cs

matches:

file/bar.cs
file/foo/bar.cs
file/foo/foo/bar.cs

"**/" can basically be considered to be "current directory or subdirectories".

Matt.


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to