> ----- Original Message ----- > From: "Troy Laurin" <[EMAIL PROTECTED]> > To: "John Hardin" <[EMAIL PROTECTED]> > Cc: "NAnt Users mailing list" <[EMAIL PROTECTED]> > Sent: Wednesday, December 15, 2004 3:20 PM > Subject: Re: [Nant-users] Changing failonerror on the fly >
> John Hardin wrote: > > On Tue, 2004-12-14 at 04:40, Troy Laurin wrote: > > > > > >>The cleanest solution (IMHO) was to create a custom try/catch/finally > >>task... your codecov target becomes: > >> > >><target name="codecov" depends="codecov-start" failonerror=”true”> > >> <try> > >> <call target="codecov-start" /> > >> <call target="test" /> > >> <finally> > >> <call target="codecov-stop" /> > >> </finally> > >> </try> > >></target> > > > > > > GACK! > > > > Where is this documented? Is this part of the standard syntax for all > > targets? > > > > -- > > John Hardin > > John, > > This currently isn't documented, because it's not a part of the standard > distribution - it's a custom task I wrote for a previous project. > > There seems to be interest in it, though... I think I'll clean it up, > extend it a little and donate it to NAnt-contrib. That would be great. We were planning on adding such a task to NAnt after 0.85 release, similar to the AntContrib <trycatch> task: http://ant-contrib.sourceforge.net/tasks/trycatch.html. Gert ------------------------------------------------------- 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://productguide.itmanagersjournal.com/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
