title: How to exclude empty directories from zipfileset
body: <p>I have an ant target for creating zip like this -</p>
  
  <pre><code>&lt;zip destfile="${dist}/myzip.zip"&gt;
      &lt;zipfileset prefix="product/install" includes="docs/resources/**,docs/*.*" excludes="docs/build.bat,docs/*.xml,docs/resources/*.html"/&gt;
  &lt;/zip&gt;
  </code></pre>
  
  <p>Now, how do I ensure that empty directories don't get included in this zipfileset.</p>
  
  <p>Eg: docs/resources directory only has html files, all of which I have excluded above. How do I make sure docs/resources folder doesn't get included.</p>
  
  <p>Should I be checking for this manually everytime? or is there an option like includeEmptyDirs="false"?</p>