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 24170] New: - failonerror does not work when sshexec task times out
Date Tue, 28 Oct 2003 04:22:48 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=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: dev@ant.apache.org
        ReportedBy: Edwin_STEELE@rta.nsw.gov.au


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message