title: Ant: copy the same fileset to multiple places - continued
body: <p>My question is in continuation of this thread:
  <a href="https://stackoverflow.com/questions/1164631/ant-copy-the-same-fileset-to-multiple-places">Ant: copy the same fileset to multiple places</a></p>
  
  <p>I am new to mappers. Can someone (carej?) kindly share an example of using the mapper to do this ? Here is what I am trying for:</p>
  
  <pre>
  parent_folder
      |----child1_folder
      |         |----files
      |                |----config.file
      |                |----data.txt
      |----child2_folder
      |----child3_folder
      .
      .
      .
      |----childn_folder
  </pre>
  
  <p>I don't have the option to use ant-contrib (sorry ... the ant location or any taskdesf isn't under my control). So I don't know how to loop over the uncertain number of folders.</p>
  
  <p>Restrictions on me:</p>
  
  <ol>
  <li>I only know the name of child1_folder (don't know names of the other children)</li>
  <li>Number of other children is uncertain</li>
  <li>I am expected to create the <code>files</code> folder under each child folder (via another task, if not copy).</li>
  </ol>
  
  <p>Here is what I was trying for (currently trying for a single file, will extend with additional mappers once this starts to work):</p>
  
  <pre><code>&lt;copy todir="/tmp/parent_folder" verbose="true"&gt;
      &lt;fileset dir="/tmp/parent_folder"&gt;
          &lt;include name="*/files/config.file"/&gt;
      &lt;/fileset&gt;
      &lt;mapper type="glob" from="*/files/config.file" to="*/files/config.file"/&gt;
  &lt;/copy&gt;
  </code></pre>
  
  <p>It keeps saying <code>skipped - don't know how to handle it</code> followed by <code>No sources found.</code>.</p>
  
  <p>Thanks in advance,
  Parag Doke</p>
  
  <p>Another (possibly?) related question:
  <a href="https://stackoverflow.com/questions/4219029/using-mapper-fileset-to-copy-files-into-a-different-subdirectory">Using mapper &amp; fileset to copy files into a different subdirectory?</a></p>