You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/11/17 21:33:22 UTC
DO NOT REPLY [Bug 24761] New: -
specify a target to be executed if error occurs
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24761>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24761
specify a target to be executed if error occurs
Summary: specify a target to be executed if error occurs
Product: Ant
Version: 1.5.3
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: glennoph@yahoo.com
I am recording a log of the ant activity. The last target will email a
distribution list that the script completed successfully. However, if there is
a problem then the last target may not be executed. I would like to define
another target handle a failure of the ant script, so I could email a failure
message.
I looked at trycatch and that would be helpful but there are multiple targets
in the main path and each would have to be wrapped with a trycatch.
Also, I would like to have the capability to print out a stacktrace to identify
the statement that resulted in the failure.
Thanks for considering this. Please let me know if anything is unclear or if
the capabililty already exists.
Regards,
Glenn Opdycke-Hansen
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org