http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1794
*** shadow/1794 Thu May 17 05:13:53 2001 --- shadow/1794.tmp.18233 Thu May 17 05:13:53 2001 *************** *** 0 **** --- 1,27 ---- + +============================================================================+ + | New feature: Set a property on test failure | + +----------------------------------------------------------------------------+ + | Bug #: 1794 Product: Ant | + | Status: NEW Version: Nightly build | + | Resolution: Platform: PC | + | Severity: Enhancement OS/Version: | + | Priority: Low Component: Optional Tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + A need that I've come across is to have a set of tests mark the build as failed + if they fail, but still continue execution for a while, so that clean-up can be + performed. For example, I start a J2EE app server as part of the script, and I + need to shut it down. + + To achieve this, I have modified the JUnitTask and BaseTask classes to permit + setting an optional property on failure/error. If a failure or error occurs, + the named property is set to true. + + I feel that this functionality could be of use to others, and am contributing + the patches.
