Thanks Buc. I have committed and am testing these changes. They will be in the next release.
 
 
----- Original Message -----
From: Buc Rogers
Sent: Saturday, December 07, 2002 8:26 PM
Subject: Re: [nant-dev] Case Sensitive Filenames

Chris--

In 0790, it's here:

DirectoryScanner.cs.

This is probably also fixed in the upcoming 0800 release and/or latest nant daily snapshots...

I did a workaround by making the regex case-insensitive as follows:

<code>

parseSearchDirectoryAndPattern()...

regexPattern =

(IsCaseSensitiveFileSystem() ? "" : "(?i)") + //specify case-insensitive matching

ToRegexPattern(searchDirectory, modifiedNAntPattern);

}

bool IsCaseSensitiveFileSystem() {

return (Path.DirectorySeparatorChar != '\\'); //Windows (not case-sensitive) is backslash, others (e.g. Unix) are not

}

</code>

/ /br

 "Barkley, Chris" <[EMAIL PROTECTED]> wrote:

This may be a totally dumb question but I have recurring problems with file
name which cases miss matches not being added to FileSets. Is this correct
behavior? Is there a way to override this behavior? I looked through the
documentation and the code and didn't see where this condition is set. Can
anyone point me in the right direction?

Thanks

Reply via email to