启动服务器后,我正在使用ANT并行任务来超时。在超时时,ant返回构建失败。我希望构建在超时秒后成功。请找到以下代码。
<target name="tomcat-start">
<parallel threadCount="1" timeout="30000" failonany="true">
<sshexec host="10.0.19.47"
trust="true"
username="${server_username}"
password="${server_password}"
command="nohup java -jar /home/techteam/TravelSecure-deployments/DTCMWS_TravelSecure-0.0.1-SNAPSHOT.jar & disown" />
<echo> Microsite service started successfully. Please wait for service to start running</echo>
</parallel>
</target>