0
所以我有我的build.xml文件中的一些麻煩,新的目標錯誤運行Ant目標
<target name="consistency">
<description>Consistency</description>
<junit printsummary="withOutAndErr" haltonfailure="yes" haltonerror="yes" dir="${basedir}" showoutput="true" fork="yes" forkmode="once">
<classpath refid="build.classpath" />
<batchtest todir="${test.dir}">
<fileset dir="${test.src.dir}/com/the/dir/is/correct/">
<include name="ConsistencyCase.java" />
</fileset>
</batchtest>
</junit>
這是由於錯誤而失敗:
[junit] Running ConsistencyCase
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
BUILD FAILED
D:\Users\myusername\workspace\projectname\build.xml:410: Test ConsistencyCase failed
Total time: 1 second
由於缺乏日誌,我無法弄清楚錯誤發生在哪裏。 我如何讓Ant來刷新一些錯誤日誌?