title: Maven and Ant plugin to copy resources intelligently
body: <p>It's easy to use <code>org.apache.maven.plugins:maven-antrun-plugin</code> to copy resources and rename them but is there a way to do this intelligently with wildcards or other mecanisms to conform personnal rules ?</p>
  
  <p>For example if I have those files :</p>
  
  <ul>
  <li><code>${project.artifactId}-${project.version}.swf</code></li>
  <li><code>a.swf</code></li>
  <li><code>b.swf</code></li>
  <li>...</li>
  <li><code>z.swf</code></li>
  </ul>
  
  <p>I would like to copy all those files inside directory and rename only <code>${project.artifactId}-${project.version}.swf</code> to <code>foo.swf</code>. I know I can use :</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.7&lt;/version&gt;
         &lt;executions&gt;
            &lt;execution&gt;
               &lt;id&gt;copy-swf-files&lt;/id&gt;
               &lt;phase&gt;compile&lt;/phase&gt;
                  &lt;goals&gt;
                     &lt;goal&gt;run&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                     &lt;target name="copy swf files to web project"&gt;
                         &lt;copy file="${project.build.directory}/${project.artifactId}-${project.version}.swf" tofile="${swf.output.location}/foo.swf" /&gt;
                         &lt;copy file="${project.build.directory}/a.swf" tofile="${swf.output.location}/a.swf" /&gt;
                         &lt;copy file="${project.build.directory}/z.swf" tofile="${swf.output.location}/z.swf" /&gt;
                      &lt;/target&gt;
                   &lt;/configuration&gt;                       
                &lt;/execution&gt;
             &lt;/executions&gt;
       &lt;/plugin&gt;
  </code></pre>
  
  <p>it's work but is there another convenient way to do that because if I have 1000 files to copy, it will be very boring...Thanks</p>