Excluding some classes from the cobertura report doesn't work

霸气de小男生 提交于 2019-12-24 10:39:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!