Nevermind about the documentation, it's been logged as a bug: http://jira.codehaus.org/browse/MCOBERTURA-51

On the other hand, if anyone knows why Cobertura would choose to not honor the <ignores> and <excludes> clauses, please share your experience.  For now I'm assuming I'm doing something wrong - I'd hate to log a bug if it's just user error.

-- Jim

On 11/9/06, Jim Wilson <[EMAIL PROTECTED]> wrote:
Following the instructions on:

   http://mojo.codehaus.org/cobertura-maven-plugin/usage.html

I added this to my pom:

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven
-plugin</artifactId>
        <configuration>
          <instrumentation>
            <ignores>
              <ignore>*</ignore>
            </ignores>
            <excludes>
              <exclude>**/*</exclude>
            </excludes>
          </instrumentation>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

Just to prove that I could affect the Cobertura report.  This did nothing - the resulting HTML looks identical to the version without the above.  What am I doing wrong?  Has anyone seen this before?

Also, as per this mail archive:

  http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL PROTECTED]

The documentation omits the "<ignores>" and "<excludes>" wrapper tags - which chokes the plugin.  All help is appreciated, thanks in advance.

-- Jim R. Wilson

Reply via email to