title: In Ant, copy all files from a tree of folders into a single folder?
body: <p>Is it possible to use Ant to copy all the files (not folders) from a hierarchy of folders into one destination folder?</p>
  
  <p>For instance, I have a tree like this:</p>
  
  <pre><code>res
  |-images
  |  |-fg.png
  |  +-bg.png
  +-sounds
     +-music.mp3
  </code></pre>
  
  <p>And I would like a result like this:</p>
  
  <pre><code>data
  |-fg.png
  |-bg.png
  +-music.mp3
  </code></pre>
  
  <p>The way things are named, filename conflicts are not an issue.</p>
  
  <p>Is this possible to do with Ant?</p>