Question about how <fileset> and <patternset> are interpreted.

How does Nant reconcile potentially conflicting <include> and <exclude> tags.

During a copy operation, I would like to exclude all text (.txt) files except 
those explicitly listed.  How might I do this?  Let's say, I want to exclude 
all *.txt files EXCEPT a particular text file.  Is this the right syntax?

How will the following example be interpreted by Nant?

            <fileset basedir="${sourceBinDir}">
                  <include name="messagefile.txt" />
                  <exclude name="*.txt" />
            </fileset>


What if the order of <include> and <exclude> are interchanged?  The 
documentation doesn't make this very clear.

Anyone have any experience with this or similar situations?

Thanks,

Ken Parrish
Gomez, Inc.




------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to