title: Apache Ant: Selecting files with fileset?
body: <p>It's really easy to select a file with a specific filename, or filetype using <code>fileset</code> in ANT, however I have yet not figured out how to write a fileset that remove all files with a filename beginning with a dot, such as <code>.builtpath</code>, and <code>.hgignore</code>, but excluding <code>.htaccess</code>;</p>
  
  <p>Here's my current file:</p>
  
  <pre><code>&lt;delete includeemptydirs="true"&gt;
  
      &lt;fileset dir="${temp.dir}/fromRepo"&gt;            
          &lt;exclude name=".htaccess"/&gt;
          &lt;include name="**/*" /&gt; &lt;!-- How to select files starting with .?!--&gt;
      &lt;/fileset&gt;
  
  &lt;/delete&gt;
  </code></pre>