title: ant exclude directories in dirset
body: <p>I am running a <code>foreach</code> loop over all directories that are below a root directory.</p>
  
  <p>I want to exclude all directories with the name "src" and "bin".</p>
  
  <p>How can i exclude those directories from the results?</p>
  
  <p>There are multiple subdirectories in the root directory and the subdirectories could also contain subdirectories. I want to go through all directories below the root, except those with the names above.</p>
  
  <p>I have tried the following and none have worked:</p>
  
  <pre><code>        &lt;path&gt;
              &lt;dirset dir="../Apps/"&gt;
                  &lt;exclude name="*src*,*bin*"/&gt;
              &lt;/dirset&gt;
          &lt;/path&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>        &lt;path&gt;
              &lt;dirset dir="../Apps/"&gt;
                  &lt;exclude name="**/src*,**/bin*"/&gt;
              &lt;/dirset&gt;
          &lt;/path&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>        &lt;path&gt;
              &lt;dirset dir="../Apps/"&gt;
                  &lt;exclude name="**/src/**,**/bin/**"/&gt;
              &lt;/dirset&gt;
          &lt;/path&gt;
  </code></pre>