Fileset Include Patterns FB 6.3.0.2026 AND 7.0.0.515 grab incorrect file list

ENVIRONMENT:
Windows XP SP2

FB 6.3.0.2026
FB 7.0.0.515

 

OBSERVED BEHAVIOR:
Recently, we have started to use Delphi 2010 to upgrade some of our projects.  This product introduces the .DPROJ file, and I noticed some odd behavior in both FB 6.3.0.2026 AND 7.0.0.515.

When defining a File Set, and using the include pattern of *.dpr , the fileset will ALSO include *.DPROJ files in the file set.  The help file does not indicate that the behavior of the first will include instances of the second, so I suspect there is a bug in the parsing . 

The fileset is interpreting the include pattern to be *.dpr* instead of an exact match of dpr for the extention (*.dpr).
(not sure if it matters, but "Recursive" is OFF, and "Directories Only" is OFF in the "Include patterns" properties page)
 

 

WORKAROUND:
The current work-around is to include an EXCLUDE pattern of *.DPROJ to exclude the extra matching files.

Hi Kent

This is a windows oddity… We are using the windows FindFirstFile/FindNextFile api’s to do this. What you are seeing is those functions matching on the 8.3 filename, you can see this happen in the command window, for example :
[code]I:\FBMainline\FinalBuilder\IDE2>dir /x *.dpr Volume in drive I is SOURCE Volume Serial Number is 8AF7-C7AD Directory of I:\FBMainline\FinalBuilder\IDE206/08/2010 11:35 AM 22,788 FINALB~1.DPR FinalBuilder7.dpr06/08/2010 11:35 AM 35,786 FINALB~2.DPR FinalBuilder7.dproj 2 File(s) 58,574 bytes 0 Dir(s) 206,810,755,072 bytes free[/code]

So the workaround is the correct way to do this. I will add a task to our todo list to investigate if we can improve this to make it easier.