title: List directories in a folder, ignore sub directories ANT
body: <p>Basically I have the following structure for a javadoc:</p>
  
  <pre><code>build
  +---javadoc
  +-------Module A
  +-------Module B
  +---Index.html
  </code></pre>
  
  <p>Module X are folders. I'm trying to list the folders there, ignoring subfolders, so I can create the main index. So far This is what I have:</p>
  
  <pre><code>&lt;target name="x"&gt;
      &lt;dirset id="dist.contents" dir="build/javadoc" excludes="build/javadoc/*/**"/&gt;
      &lt;property name="prop.dist.contents" refid="dist.contents"/&gt;
      &lt;echo&gt;${prop.dist.contents}&lt;/echo&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>But it gives me both the the Module's folder and all its subfolders. I know it should be a little detail but I can't figure it out.</p>