ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rez P <pon...@hotmail.com>
Subject RE: Filemapper or globmapper
Date Tue, 02 Mar 2010 17:37:22 GMT

Thanks. That works like a charm. My problem was that I was putting globmapper outside of my
copy task. :)
 
> From: bodewig@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 <pons32@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-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
 		 	   		  
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/201469230/direct/01/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message