Greetings. I've only been 'using' for a couple of weeks, so apologies if there is a better way to do this.
I'm starting small (!) with a build/deploy of 4 websites with several thousand classes/files to four different environments. It all works beautifully, apart from a minor niggle. I have to copy a number of <fileset>s from different base directories when I deploy. As they are all ASP.NET applications, the patterns are the same (**.as?x, **.css, **.jpg, etc.). I was hoping to have been able to set up a project-level fileset, and then use <fileset refid="blah" basedir="somedir"> to reuse the pattern set. This doesn't seem to work, as it ignores the basedir= as soon as it sees the refid. This means multiple <fileset> each with identical <include>s in them. I'm not a big fan of having six or seven copies of cut-and-pasted stuff in the buildfile as it makes it harder to maintain. I saw a couple of other posts along similar lines, so I have the following workaround. I made a file "asp.patternset" to hold the common patterns, and used <includesfile>, e.g. <copy todir="${deploy.server}/${deploy.prefix}Phoenix" > <fileset basedir="${srcdir}/myDevPhoenix" > <includesfile name="asp.patternset" /> </fileset> </copy> This seems to work well, and I can use it with multiple <fileset>s with different basedirs. The only things I don't like are that the patternset is held externally to the buildfile, which may make it harder for others to maintain, and that there is no conditional behaviour on the patterns as there is on <include if="${...}">. It would make life simpler if NAnt had a <patternset> (as Ant does) that could be held project level, and then just refer to it from within a fileset. Is there any chance of adding this feature? Regards Steve Colby ----------------------------------------- Email sent from www.ntlworld.com virus-checked using McAfee(R) Software visit www.ntlworld.com/security for more information ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users