2011-02-23 2 views
2

ANT 빌드 스크립트를 실행할 때 Cobertura가 다음과 같은 경고를 표시합니다. 그것으로, 나는 그것이 정말로 무엇을 의미하는지 궁금해. 어떻게 내가 그것을 끌 수 있을까.특정 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> 

알려 주시기 바랍니다.

답변

1

cobertura 메일 목록에 here을 제안 했으므로 아마도 디버그 옵션을 추가하고 그 도움이되는지 확인할 수 있습니다.

6

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? 
+0

이 경고는 내부 클래스에만 적용됩니다. 누구든지 그 문제를 해결하는 방법을 알고 있습니까? – Jon

관련 문제