我看过http://ant.apache.org/manual/Tasks/retry.html并且它没有列出必要的 jar 来确保不会发生以下错误:
build.xml:80: Problem: failed to create task or type retry
这就是我的代码当前的样子:
<retry retrycount="5">
<javaTask variable="${host}" variable2="${user}" variable3="${pass}"/>
</retry>
最佳答案
您需要 Ant 版本 1.7.1 或更高版本才能使用重试
。每the documentation :
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. Since Apache Ant 1.7.1
关于ant - 重试任务 Ant 的 Jar 依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19182795/