问题
I tried to remove some classes from the cobertura report as
<target name="voldemort-instrument" description="Instrument Voldemort Classes">
<mkdir dir="${voldemort.instrumented.dir}" />
<cobertura-instrument todir="${voldemort.instrumented.dir}" datafile="${cobertura.instrument.file}">
<classpath refid="tools-classpath" />
<ignore regex=".*\.xsd" />
<fileset dir="${voldemort.dist.dir}/classes">
<include name="**/*.class" />
<exclude name="**/client/protocol/pb/*.class"/>
<exclude name="**/server/http/*.class"/>
<exclude name="**/server/http/gui/*.class"/>
<exclude name="**/store/views/*.class"/>
<exclude name="**/store/gzip/*.class"/>
<exclude name="**/VoldemortClientShell.class"/>
<exclude name="**/ClusterViewer.class"/>
<exclude name="**/utils/VoldemortAdminClientShell*.class"/>
</fileset>
</cobertura-instrument>
</target>
But this doesn't work.....
Do I need to change something else too..
Please help me, I am struggling with this for past 1 week....
回答1:
Maven cobertura plugin, does not respect exclude tags for report generation. This is a known bug reportrted here:
http://jira.codehaus.org/browse/MCOBERTURA-52
来源:https://stackoverflow.com/questions/2966061/excluding-some-classes-from-the-cobertura-report-doesnt-work