Troy Laurin wrote:
---- Original Message ---- From: [EMAIL PROTECTED]
[snip]
OK - I've whipped up a couple of custom functions using the script task to inspect the contents of a fileset. Heres the script :
[snip]
[Function("to-string")] public string Contains( string fsetID ) {
[snip]
Ian
btw - I quite like the idea of prototyping functions/tasks in script
tags before considering them for inclusion in NAnt. Maybe we should
add a user-submitted scripts section on the wiki.
An excellent idea :-)
One comment, at the risk of being picky... in your to-string function, it would be nice if it accepted a second string parameter to use as the separator between entries, so the user can specify whether they want spaces, semicolons, commas, etc.
-
Hey - pick away - I put that together in about 10 minutes so any/all suggestions welcome. I was actually considering an option to display all the Matches for Includes/Excludes as well as the FileNames set of files.
Ian
------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
