You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Volker Fuessler <vf...@web.de> on 2007/12/19 17:25:01 UTC

Problems with Clover 2 and context filters

Hi,

I try to filter logging statements from Clover coverage, but 
unfortunately I can't get it to work. That's how I configured clover in 
the pom.xml

        <plugin>
            <artifactId>maven-clover-plugin</artifactId>
            <groupId>com.atlassian.maven.plugins</groupId>
            <version>3.6</version>
            <configuration>
                <jdk>1.5</jdk>
                <licenseLocation>${clover.licenseLocation}</licenseLocation>
                <statementContext name="log" regexp="^LOG\..*"/>
                <statementContext name="iflog" regexp="^if \(LOG\.is.*"/>
                <contextFilters>log,iflog</contextFilters>
            </configuration>
        </plugin>

I did not find out how I configure this for a maven build, so I tried to 
combine the steps from the ant documentation with the maven documentation.
Ant:
http://confluence.atlassian.com/display/CLOVER/Using+Coverage+Contexts
Maven:
http://confluence.atlassian.com/display/CLOVER/Clover-for-Maven+2+User%27s+Guide#Clover-for-Maven2User%27sGuide-ConfiguringContexts

Can anybody help me and tell we what's wrong with my approach and maybe 
show me how this is be done in the right way :)?

thanks - kind regards,

Volker

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org