Bugs item #1801177, was opened at 2007-09-24 16:03 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1801177&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Core Group: 0.85 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: varun (varunnagpaal) >Assigned to: Gert Driesen (drieseng) Summary: exclude tag evaluates name attribute to Case sensitive path Initial Comment: Hi, I have bee trying to exclude a sub-folder and its contents from being deleted during a delete operation. All files/folder in folder "fld" except sub-folder(along with its file/folder content) "logs" is to be deleted. To do the same here is the code: <?xml version="1.0" encoding="utf-16"?> <project name="Test.Delete" default="Test.Delete" xmlns="http://nant.sf.net/schemas/nant.xsd"> <target name="Test.Delete"> <delete failonerror="false" verbose="true"> <fileset basedir="fld\"> <include name="**" /> <!--notice name attribute has value 'logs\**'. This code works fine as per requirement--> <exclude name="logs\**" /> </fileset> </delete> </target> </project> Now if I rename the name of sub-folder 'log' to 'LOG' or 'Log', the exclude seems to fail and behave intermittently. Only when the name attribute value is identical in case senstivity to actual folder name, does exclude works properly Now I will put down same code but will change case-sensitivity of exclude folder name pattern to 'Logs\**' instead of 'logs\**' Now the exclude functionality will fail. <?xml version="1.0" encoding="utf-16"?> <project name="Test.Delete" default="Test.Delete" xmlns="http://nant.sf.net/schemas/nant.xsd"> <target name="Test.Delete"> <delete failonerror="false" verbose="true"> <fileset basedir="fld\"> <include name="**" /> <!--notice name attribute has value 'Logs\**'. This code fails --> <exclude name="logs\**" /> </fileset> </delete> </target> </project> To me it seems a bug. I will look into the NANT source code, and try and find a fix. Thanks, Varun ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2007-12-07 14:21 Message: Logged In: YES user_id=707851 Originator: NO Please try using the lastest nightly build (http://nant.sourceforge.net/nightly/latest), and reopen the bug report if you can still reproduce this issue. Thanks for the report! ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2007-09-24 18:25 Message: Logged In: YES user_id=707851 Originator: NO This should be fixed in CVS. Can you build NAnt from CVS, or should I upload a new "nightly" build? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1801177&group_id=31650 ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers