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/08/25 00:43:31 UTC

DO NOT REPLY [Bug 19237] - SSHExec task should fail if remote command fails

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=19237>.
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=19237

SSHExec task should fail if remote command fails





------- Additional Comments From rob@bigdis.com  2003-08-24 22:43 -------
This looks to me to be a deficiency in the underlying jsch API. The code is in
that library to get the exit status (there's a commented out System.out.println
for the proper exit status in the Session.java file where they handle the ssh
exit_status message), but it seems to be thrown away with no way to return it to
the caller.

This is probably not too hard to fixup, but it does require (I think) modifying
the jsch library.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org