> ----- Original Message ----- > From: "Jennifer Meek" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, February 12, 2004 12:19 AM > Subject: [Nant-users] how do i get excludes to exclude? >
> Hey everyone, > > I'm new to NAnt, so forgive me if this has already been discussed.... > > I can't get the fileset excludes to work. I'm trying to copy a set of > files except for a few that are a certain file type. This is the > general format I've used: > > <copy todir="copytodir"> > <fileset basedir="copyfromdir" > > <includes name="**" /> > <excludes name="*.cs" /> > </fileset> > </copy> > > When I used this, it still copied everything except the defaultexcludes. > So, since that didn't work, I tried to exclude just one file, switching > the includes & excludes statements, etc... No exclusion has worked. Your example should indeed exclude all files with extension .cs in the copyfromdir (but not its subdirectories). If you want to exclude all .cs files from copyfromdir and its subdirectories, you should use <excludes name="**/*.cs" /> > I'm using NAnt-0.84 on Windows Server 2003 SE. Am I using this wrong or > is this a bug? Neither one ... Gert ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users