ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Filemapper or globmapper
Date Tue, 02 Mar 2010 05:03:46 GMT
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


Mime
View raw message