Hi all, I?m currently having a bit of trouble using include and exclude in delete task and was hoping someone might be able to help? I have the following:
<delete failonerror="false" verbose="true"> <fileset basedir="${Globals.SourcePath}\"> <include name="FolderA\**" /> <exclude name="FolderA\FolderB" /> <exclude name="FolderA\FolderB\**\*.*" /> </fileset> </delete> ?and I assumed this would delete the entire contents of ${Globals.SourcePath}\FolderA and all sub-folders apart from the files in FolderB and it?s sub-folders, unfortunately what I?m seeing is that everything is being deleted?which in turn causes my build to fail as the files here are required. Can anyone suggest how to get the behaviour I need? I?ve tried searching the list and found similar problems?and the snippet above actually comes from a working delete that someone else posted here? Thanks for any help, Jay -- View this message in context: http://www.nabble.com/Problem-with-include-exclude...-tf2357071.html#a6565589 Sent from the NAnt - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users