Brad Schick schrieb: > I'd like to apply the same set of <include> and <exclude> file patterns > to multiple copy tasks. It looks like I can define multiple <fileset> > instances and have each include the same <includesfile>, but I'd rather > not move data to external files. > > Is there any way to define a group of <include> and <exclude> rules > within a nant file, give that group an ID, and then reuse it?
Well, you could define a fileset somewhere in the build-file and reference that fileset using the "refid" attribute of the fileset task. However I find it very unfortunate, that you cannot set the basedir for the fileset when you're referencing an other fileset ... <fileset id="common_files"> <include name="abc.dll" /> </fileset> <target name="foo"> <copy> <fileset basedir="xyz" refid="common_files" /> </copy> <copy> <fileset basedir="abc" refid="common_files" /> </copy> </target> this doesn't work, because you can't have refid and basedir at the same time :( ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users