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 Deja.com ==--
http://www.deja.com/

Reply via email to