title: Renaming files during ANT copy
body: <p>I'd like to copy a directory of files, and rename some of them in the process.
  When I run the script below, nothing copies.
  If I comment the glob mappers in the file below, the files are copied (without the renaming)</p>
  
  <p>Thanks for any help.
  James</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  &lt;project name="Create project structure" default="main"&gt;
    &lt;target name="main" description="Copy template files to project folder"&gt;
      &lt;echo&gt;Copying template files to project folder&lt;/echo&gt;
      &lt;copy todir="${project.dir}" verbose="true" overwrite="true"&gt;
        &lt;fileset dir="${shared.files}/templateproject" excludes=".svn"/&gt;
        &lt;mapper&gt;
          &lt;chainedmapper&gt;
            &lt;mapper type="glob" from="*PACKAGENAME*" to="*${package.name}*"/&gt;
            &lt;mapper type="glob" from="*GAMENAME*" to="*${game.name}*"/&gt;
            &lt;mapper type="identity"/&gt;
          &lt;/chainedmapper&gt;
        &lt;/mapper&gt;
      &lt;/copy&gt;
    &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>