NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# B.39 Retry Retry is a container which executes a single nested task until either: there is no failure; or: its retrycount has been exceeded. If this happens a BuildException is thrown.. Table B.39:聽Attributes NameTypeDescriptionDefaultRequired`retrycount``Integer`number of times to attempt to execute the nested task 1Yes`retrydelay``Integer`number of seconds to wait between retry attempts task. 0No, defaults to no delay Any valid Phing task may be embedded within the retry task. B.39.1 Example ``` <retry retrycount="3"> <httpget url="http://www.unreliable-server.com/unreliable.tar.gz" dir="/home/retry"/> </retry> ``` This example shows how to use `<retry>` to wrap a task which must interact with an unreliable network resource.