tag:blogger.com,1999:blog-12467669.post113657155274131219..comments2023-04-29T07:23:25.825-04:00Comments on Jay Fields' Thoughts: I prefer Rake to NAnt (#2)Jayhttp://www.blogger.com/profile/14491442812573747680noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-12467669.post-1136640186676575342006-01-07T08:23:00.000-05:002006-01-07T08:23:00.000-05:00Hello Matt,I did know about creating custom script...Hello Matt,<BR/>I did know about creating custom scripts; however, I've never actually done it. Perhaps I'll write up the delete task and see how it compares.<BR/><BR/>Thanks for the feedback,<BR/>JayAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12467669.post-1136620308876935092006-01-07T02:51:00.000-05:002006-01-07T02:51:00.000-05:00Greetings Jay,But you've cheated :)FYI, note that ...Greetings Jay,<BR/><BR/>But you've cheated :)<BR/><BR/>FYI, note that whilst it may be possible to conjure up a NAnt variant of your conditional delete script using existing NAnt tasks, its also possible to define custom scripting tasks containing source code in a similar manner to your Ruby script. See the following for further details:<BR/><BR/>http://nant.sourceforge.net/release/latest/help/tasks/script.html<BR/><BR/>Note the fourth example that shows the definition of a custom script and its invocation via custom task elements, so you could define a deletion script that is invoked as follows:<BR/><BR/><deleteFiles createdBefore='07-Jan-2005'/><BR/><BR/>Not that I'm trying to curb your enthusiasm for Ruby, just in case you need to know in future.<BR/><BR/>Cheers,<BR/>MattAnonymousnoreply@blogger.com