Thanks. That works like a charm. My problem was that I was putting globmapper 
outside of my copy task. :)
 
> From: bode...@apache.org
> To: user@ant.apache.org
> Subject: Re: Filemapper or globmapper
> Date: Tue, 2 Mar 2010 06:03:46 +0100
> 
> On 2010-03-01, Rez P <pon...@hotmail.com> wrote:
> 
> > <copy file="${dist}/app1.war.qa" 
> > tofile="${local.dir}/${build.version}.${build.number}/qa/${appname}.war" 
> > overwrite="true"/>
> 
> 
> > <copy file="${dist}/app1.jar.qa" 
> > tofile="${local.dir}/${build.version}.${build.number}/qa/${appname}.jar" 
> > overwrite="true"/>
> 
> 
> > <copy file="${dist}/app2.jar.qa" 
> > tofile="${local.dir}/${build.version}.${build.number}/qa/${appname}.jar" 
> > overwrite="true"/>
> 
> Looks like
> 
> <copy todir="${local.dir}/${build.version}.${build.number}">
> <fileset dir="${dist}"/>
> <globmapper from="*.qa" to="qa/*"/>
> </copy>
> 
> unless there is some special logic where app1 => ${appname} must be
> mapped that I don't see. In this case maybe a regex can help.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
> 
                                          
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/201469230/direct/01/

Reply via email to