Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.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
Xml 如何使用Junit ant任务打印调试消息?_Xml_Ant_Junit_Verbosity_Debug Print - Fatal编程技术网

Xml 如何使用Junit ant任务打印调试消息?

Xml 如何使用Junit ant任务打印调试消息?,xml,ant,junit,verbosity,debug-print,Xml,Ant,Junit,Verbosity,Debug Print,考虑以下为可读性而简化的junitant目标: ... 为了获得test.dist.dir变量的详细调试输出,我从build.xml文件中的另一个目标复制了以下行: <echo message="${test.dist.dir}"/> 如何打印Junit ant任务的调试输出?将其置于元素之前: <target name="junit-tests" depends="clean, compile-tests"> <echo message="${tes

考虑以下为可读性而简化的junitant目标:


...
为了获得
test.dist.dir
变量的详细调试输出,我从
build.xml
文件中的另一个目标复制了以下行:

<echo message="${test.dist.dir}"/>
如何打印Junit ant任务的调试输出?

将其置于
元素之前:

<target name="junit-tests" depends="clean, compile-tests">
    <echo message="${test.dist.dir}"/>
    <junit fork="true" showoutput= ...>...

...
因为变量的值不能更改,所以没有必要将其移到内部

<target name="junit-tests" depends="clean, compile-tests">
    <echo message="${test.dist.dir}"/>
    <junit fork="true" showoutput= ...>...