【问题标题】:Hudson and Clover Plugin哈德逊和三叶草插件
【发布时间】:2011-03-14 10:33:56
【问题描述】:

我们在 Hudson 上使用 Clover 插件。 是否可以在 hudson 上设置一个属性以排除某些文件/包被三叶草分析? 我正在查看项目文档,但没有遇到与属性有关的任何内容

谢谢 达米安

【问题讨论】:

    标签: hudson hudson-plugins clover


    【解决方案1】:

    你在使用 Maven 吗?如果是这样,我认为 Hudson(或 Jenkins)将使用 maven 插件配置来确定要排除哪些类。您只需配置一组要从检测中排除的 RegEx 表达式。与下面的示例类似:

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

    希望对你有所帮助...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-07
      • 2011-12-09
      相关资源
      最近更新 更多