1. opensymphony
  2. xwork

Commits

rainerh  committed df8c06d

Clover report without log debug
Issue number: XW-349
Obtained from:
Submitted by: Claus Ibsen
Reviewed by: Rainer Hermanns

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@868e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 9813370
  • Branches master

Comments (0)

Files changed (1)

File osbuild.xml

View file
  • Ignore whitespace
     </target>
 
     <target name="junit-check" depends="init" unless="junit.available">
-        <fail message="Cannot run test cases. Please copy lib/build/junit-3.8.1.jar to ${ant.home}/lib"/>
+        <fail message="Cannot run test cases. Please copy lib/build/junit.jar to ${ant.home}/lib"/>
     </target>
 
     <target name="clover-check" depends="init" unless="clover.available">
 
         <mkdir dir="${build.clover}"/>
         <clover-setup initString="${build.clover}/coverage.db">
+            <statementContext name="logIsDebugEnabled" regexp="[\s]*if[\s]*\([\s]*(log|_log|LOG|_LOG)\.isDebugEnabled.*"/>
+            <statementContext name="logDebug" regexp="[\s]*(log|_log|LOG|_LOG)\.debug[\s]*\(.*"/>
             <files>
                 <exclude name="${src.test}/**/*.java"/>
             </files>
     <target name="clover.report" depends="test" description="generate coverage reports" unless="skip.tests">
         <clover-report>
             <current outfile="${dist.docs}/clover">
-                <format type="html"/>
+                <format type="html" filter="logDebug,logIsDebugEnabled"/>
             </current>
         </clover-report>
+        <clover-log filter="logDebug,logIsDebugEnabled"/>
     </target>
 
     <target name="clover.historical" depends="clover.report" description="generate coverage historical reports"