ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Starkie" <>
Subject task return codes
Date Fri, 20 Jul 2001 18:44:15 GMT
I've searched throught the documentation and archives and I believe I can't capture a return
code from a Task.  When I use the Mail task to send ant's logfile to an email address, the
file get's mailed before the "BUILD SUCCESSFUL" or "BUILD FAILED" text get's appended to it.

It would nice to be able to check the return status of the previous dependency. so if <target
name="mail" depends="compile"/> It would be cool to check the return status of "compile"
inside "mail" then I could append my own result string to the logfile inside "mail".

Perhaps the execute() method of the Task class should return an int instead of void?

--== Sent via ==--

View raw message