title: How to make work together an Ant filelist inside an Ant copy
body: <p>I would like to use the result of the following filelist (Ant):</p>
  
  <pre><code>&lt;filelist id="docfiles" dir="doc"&gt;
      &lt;file name="foo.xml"/&gt;
      &lt;file name="bar.xml"/&gt;
  &lt;/filelist&gt;
  </code></pre>
  
  <p>into the following copy :</p>
  
  <pre><code>&lt;copy todir="folder"&gt;
  ??? 
  &lt;/copy&gt;
  </code></pre>
  
  <p>I have already tried to put them together like:</p>
  
  <pre><code>&lt;copy todir="folder"&gt;
   &lt;filelist id="docfiles" dir="doc"&gt;
    &lt;file name="foo.xml"/&gt;
    &lt;file name="bar.xml"/&gt;
   &lt;/filelist&gt;
  &lt;/copy&gt;
  </code></pre>
  
  <p>But Ant answer that FileLists is not supported in a such task.
  Thanks.</p>