ant - 重试任务 Ant 的 Jar 依赖项?

标签 ant

我看过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/

相关文章:

java - Ant命令运行问题

java - 继承javadoc,不为继承源生成文档

ant - 在 ANT 复制期间重命名文件

java - 生成 Checkstyle 报告(带有扩展检查)

java - 如何使用ant在文件内的特定位置写入

ant - 如果满足两个条件,则执行 Ant 任务

java - Ant Javac 和 Commandline Javac 给出不同的结果

android - 意外的顶级异常 : Multiple dex files define

java - list 文件不是通过 ANT 生成的

java - 如何在我的 Java 代码中使用 Apache Ant 的任务