我试图从cobertura报告中删除一些类
<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>
但这不起作用.....
我是否还需要改变别的东西..
请帮助我,过去1周我一直在努力....
答案 0 :(得分:3)
Maven cobertura插件,不尊重排除报告生成的标签。 这是一个已知的bug报告: