开发者

Hudson and Clover Plugin

We are using the Clover plugin on Hudson. Is it possible to set a property开发者_运维问答 on hudson to exclude certain files / packages from being analyzed by clover? I was looking at the project documentation but didnt come across anything in relation to properties

Thanks Damien


Are you using Maven? If so, I think Hudson (or Jenkins) will be use the maven plugin configuration to determine which classes to exclude. You simply configure a set of RegEx expressions that you want to exclude from instrumentation. In a similar way to the example below:

<plugin>
    <groupId>com.atlassian.maven.plugins</groupId>
    <artifactId>maven-clover2-plugin</artifactId>
    <configuration>
      </includes>
      <excludes>
        <exclude>**/*Test/java</exclude>
        [...]
      </excludes>
     [...]
</plugin>

Hope that helps you out...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜