ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24761] New: - specify a target to be executed if error occurs
Date Mon, 17 Nov 2003 20:33:22 GMT
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


Mime
View raw message