title: Nant foreach include exclude filter not working as expected
body: <p>I wish to exclude particular files from a nant (0.91) target and process the remainder.<br>
  Here's the code snippet, which shows I want to include all .js files but exclude foo.
  foo is not being excluded.  I've tried putting the exclude before the include but same result.<br>
  </p>
  
  <pre><code>&lt;foreach item="File" in="${built.web.directory}\Content\js" property="filename"&gt;
      &lt;in&gt;
          &lt;items basedir="${built.web.directory}\Content\js"&gt;
              &lt;include name="/**/*.js" /&gt;
              &lt;exclude name="**/foo.1.2.js" /&gt;
              &lt;exclude name="foo.1.2.js" /&gt;
          &lt;/items&gt;
      &lt;/in&gt;
      &lt;do&gt;
          &lt;echo message="Compressing ${filename}" /&gt;
          &lt;exec program="${packer.exe}" commandline="-o ${built.web.directory}\Content\js\${path::get-file-name(filename)} -m jsmin ${filename}" /&gt;
      &lt;/do&gt;
  &lt;/foreach&gt;
  </code></pre>