Bugs item #1801177, was opened at 2007-09-24 19:33 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: Tasks Group: 0.85 Status: Open Resolution: None Priority: 5 Private: No Submitted By: varun (varunnagpaal) Assigned to: Nobody/Anonymous (nobody) 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1801177&group_id=31650 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers