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=24170>. 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=24170 failonerror does not work when sshexec task times out Summary: failonerror does not work when sshexec task times out Product: Ant Version: 1.6Beta Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Given the target: <target name="bob"> <sshexec username="user" host="remotehost" password="pwd" command="sleep 10" timeout="5000" failonerror="true"/> </target> I would expect the build to fail. Instead, I get: Buildfile: deploy.xml bob: [sshexec] Connecting to remotehost:22 [sshexec] Timeout period exceeded, connection dropped. BUILD SUCCESSFUL Total time: 8 seconds The documentation for the sshexec failonerror property is vague (see bug 24169) and so the expected behaviour isn't explicitly covered. I expect it to work this way (and need a way to fail a build if it doesn't complete properly) so I'm submitting a patch :-) The timeout cases aren't currently checking failonerror - please see the attached patch. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
