nant / nant

NAnt is a free .NET build tool. In theory it is kind of like make without make's wrinkles.
nant.sourceforge.net
GNU General Public License v2.0
260 stars 124 forks source link

/*.* behaves like /**/*.* #64

Closed Kaiserludi closed 9 years ago

Kaiserludi commented 12 years ago

Our scripts make a lot use of /. and /*/.. The first copies all top level files in the folder, but no subfolders, the second one additionally also includes subfolders This has worked fine until we have upgraded to version 0.9.2, but after upgrading /.* now also copies includes the subfolders, so that the only way to only copy all the top-level files in a folder withouth also copying the subfolders, is, to specify every used file-ending separately. This can be reprocuded, by for example switching back to an older nant version like 0.91-alpha2 - the same unchanged scripts work correctly again, but only until switching forward to 0.92 again. i have not tried with any version between 0.91-alpha2 and 0.92, so I can't tell the exact version, that has introduced that bug.

dguder commented 12 years ago

Could you please provide me an example how you use /. in your build files. I was not able to reproduce this issue.

Kaiserludi commented 12 years ago

https://dl.dropbox.com/u/4296291/reproCase.zip The buildfile in the zip with nant 0.91 correctly just copies test.txt from Bar into Foo, but with nant 0.92 it wrongly also copies SubFolder/test.txt from Bar into Foo.

dguder commented 12 years ago

Thanks for the repro, I see the issue now.

rmboggs commented 12 years ago

I believe this is related to one of my fixes I put into 0.92 while trying to address another bug request. That being said, I was thinking about seeing whether or not I can switch this back to only recognize files with . without disrupting the rest of the fix. I'll assign this to me.

dguder commented 12 years ago

Ok.

rmboggs commented 11 years ago

Please check to see if the recent commit to my issues_64_85 branch solves for this issue.

rmboggs commented 9 years ago

I believe that the pull request I just made should resolve this.

rmboggs commented 9 years ago

This type of issue has been reported a few times. This should be fixed now.

awglyde commented 6 years ago

A bit late to the party. @rmboggs will a new version of nant-0.92 be posted on sourcetree that has this fix?