Sean, The problem is in how you are using your wildcards...
Try <sources> <includes name="${sc.source}\${library.name}\**\*.cs" /> <excludes name="${sc.source}\${library.name}\**\_*.cs" /> <excludes name="${sc.source}\${library.name}\UnitTests\**\*.cs" unless="${include.tests}" /> </sources> It's usually a good idea to restrict only the * wildcard, and use ** only when you really want everything "from here on" matched. The order of include/exclude elements doesn't seem to matter (I'm testing on nightly build 20040525), and the content of the fileset seems to be the intersection ("and") of the include/exclude elements. Hope this helps, -- Troy > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Sean Walker > Sent: Thursday, 1 July 2004 1:31 PM > To: [EMAIL PROTECTED] > Subject: [Nant-users] Difficulty excluding files of specific > naming convention > > within the target, Sources tag, I am trying to exclude files > using name filtering. I wish to include all files with a > name starting with _ ending in .cs, but include all other .cs > files. I am using the > following: > > <sources> > <excludes name="${sc.source}\${library.name}\_*.cs"/> > <includes name="${sc.source}\${library.name}\**.cs"/> > <excludes unless="${include.tests}" > name="${sc.source}\${library.name}\UnitTests\**.cs"/> > </sources> > > I really need an "and" ... or something similar to the > Selectors concept in Ant. Is there a way of doing this? > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor > pitches, unmatched networking opportunities. Visit > www.blackhat.com _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > > Disclaimer Message: This message contains confidential information and is intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please immediately delete it and all copies of it from your system, destroy any hard copies of it, and notify the sender. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users