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来刷新一些错误日志?