Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ant 如何在UNWAR任务上设置failonerror=false_Ant - Fatal编程技术网

Ant 如何在UNWAR任务上设置failonerror=false

Ant 如何在UNWAR任务上设置failonerror=false,ant,Ant,我有一个执行多个unwar任务的目标。 如果一个UNWAR任务由于缺少archieve文件而失败,我仍然希望在该目标中执行其他(下一个)UNWAR任务。如何做到这一点 谢谢, Raj第三方有一个捕获异常然后继续执行Ant脚本的脚本: <taskdef resource="net/sf/antcontrib/antlib.xml" /> <trycatch> <try> <unwar/> <!-- A fully co

我有一个执行多个unwar任务的目标。 如果一个UNWAR任务由于缺少archieve文件而失败,我仍然希望在该目标中执行其他(下一个)UNWAR任务。如何做到这一点

谢谢, Raj

第三方有一个捕获异常然后继续执行Ant脚本的脚本:

<taskdef resource="net/sf/antcontrib/antlib.xml" />

<trycatch>
    <try>
        <unwar/> <!-- A fully configured unwar task here -->
    </try>
    <catch>
        <echo>The unwar task failed.</echo>
    </catch>
</trycatch>

<!-- The script continues here, even if the unwar task failed. -->

unwar任务失败。