如何删除特定的Cobertura警告? [英] How to remove specific Cobertura warning?
本文介绍了如何删除特定的Cobertura警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行ANT构建脚本时,Cobertura抱怨以下警告.这样,我想知道它的真正含义是什么以及如何关闭它.
When i am running my ANT build script, Cobertura is complaining with the following warning. With that, i am wondering what it means really and how can i turn it off.
[cobertura-instrument] WARN visitEnd, No line number information found for class com.x.y.z.A. Perhaps you need to compile with debug=true?
下面的ANT示例:
<target name="instrument" depends="init,compile" >
<delete file="cobertura.ser" />
<delete dir="${instrumented}" />
<cobertura-instrument todir="${instrumented}">
<ignore regex="org.apache.log4j.*" />
<fileset dir="${build}" >
<include name="**/*.class" />
<exclude name="**/Test*.class" />
</fileset>
</cobertura-instrument>
</target>
请告知.
推荐答案
如建议此处(在cobertura邮件列表中),也许您可以尝试添加调试选项,看看是否有帮助.
As suggested here in the cobertura mailing-list, perhaps you can try adding the debug options and see if that helps.
<javac debug="true" debuglevel="vars,lines,source">
这篇关于如何删除特定的Cobertura警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文