Jam*_*sev 2 ant warnings cobertura
当我运行我的ANT构建脚本时,Cobertura抱怨以下警告.有了它,我想知道它究竟意味着什么,我怎么能把它关掉.
[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>
Run Code Online (Sandbox Code Playgroud)
请指教.
设置debuglevel似乎不适用于匿名内部类(Cobertura 1.9.4.1)?
[cobertura-instrument] WARN visitEnd, No line number information found for class com.test.MyClass$1. Perhaps you need to compile with debug=true?
Run Code Online (Sandbox Code Playgroud)