</fileset>\r
</scp>\r
\r
+ <!-- trycatch probably not needed any more as it just fails with the original message and doesn't do anything in the finally block -->\r
<trycatch property="error_message">\r
<try>\r
<!-- timeout in one hour (remote end should timeout in 55 minutes) -->\r
</antcall>\r
</then>\r
</if>\r
- </try>\r
- <catch>\r
- <fail message="${error_message}" />\r
- </catch>\r
- <finally>\r
+ \r
<!-- timeout in five minutes -->\r
<sshexec host="${target-host}" outputproperty="stop-output" timeout="300000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml shutdown-and-cleanup" failonerror="false" />\r
<antcall target="echo-prefix">\r
<param name="prefix" value="${target-server}: " />\r
<param name="message" value="${stop-output}" />\r
</antcall>\r
- </finally>\r
+ </try>\r
+ <catch>\r
+ <fail message="${error_message}" />\r
+ </catch>\r
</trycatch>\r
</target>\r
\r