I don't know a way to do it. But, you could just look at the log to figure it
out. The last task to run is the one that failed.
From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com]
Sent: Monday, November 01, 2010 1:50 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Target Failure Determination
Would anyone know if there is a way to determine what target or task failed
when using nant.failure? What I was considering on do was setting a property
based on what task the script is currently processing, then clear the property
at the end of the task. If the property is not blank then have the script roll
back everything up to and including the name of the task that was recorded in
the property. Make sense? Would there be a better way of doing this?
Thanks
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users