title: Configuring clover exclude file patterns
body: <p>Greetings, </p>
  
  <p>I have clover 3.0 setup using ant, with the following file exclusions:</p>
  
  <pre><code>&lt;clover-setup initString="${clover.initstring}" flushpolicy="threaded" flushinterval="30000"&gt;
      &lt;methodContext name="tostring" regexp="(.* )?public String toString\(.*\).*" /&gt;
      &lt;files&gt;
          &lt;exclude name="**/*Test.java" /&gt;
          &lt;exclude name="**/entity/fields/*.java" /&gt;
      &lt;/files&gt;
  &lt;/clover-setup&gt;
  </code></pre>
  
  <p>The *Test files are excluded correctly, as is the toString() calls, the files under the entity/fields package are not. Does the <code>&lt;files&gt;</code> ant type work with two excludes items? Can you have a partial package definition on your exclude name? I used <code>**/.....</code> format as the doc says something cryptic like</p>
  
  <p><em>An Ant patternset, relative to the top level package (e.g. com/cenqua/clovertest), element which controls which files are included or excluded from Clover instrumentation. Use this when you wish to exclude files based on packages.</em></p>
  
  <p>From this I read it starts at clovertest in the sample, although i'm not sure how it knows what the <code>top level package is</code>? Is that the first package with files?</p>
  
  <p>As an example my java classes that i want to exclude are like</p>
  
  <pre><code>package com.acme.missileinabox.common.entity.fields;
  
  public class ActivityFields {
     ....
  }
  </code></pre>
  
  <p>Any idea what i'm foobaring? I posted the question <a href="http://forums.atlassian.com/thread.jspa?threadID=53418&amp;tstart=0" rel="nofollow">here</a> with no response.</p>