【发布时间】:2017-04-03 17:10:19
【问题描述】:
我编写了一个 ant 构建文件来检查目录中的所有翻译文件。 如果出现任何文件中的检查错误,我希望 ant for 脚本继续检查其余文件。 我的蚂蚁任务:
<taskdef name="validate" classname="ValidateTranslateFile">
<classpath>
<pathelement location="${ant-libs-dir}/TranslateFileUtilities.jar" />
<pathelement location="../web/WEB-INF/lib/commons-io-2.5.jar" />
<pathelement location="../web/WEB-INF/lib/commons-lang3-3.5.jar" />
</classpath>
</taskdef>
<for param="program">
<path>
<fileset dir="../web/WEB-INF" includes="*.txt" />
</path>
<sequential>
<validate targetFile="@{program}" checkLanguages="true" checkKeysOrder="true" />
</sequential>
</for>
</target>
结果: 它检查文件直到出现第一个错误,然后 BUILD FAILED。
谁能帮我解决这个问题?
【问题讨论】:
标签: ant