ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Copy files to output, but a directory higher...
Date Mon, 30 Sep 2002 06:11:23 GMT
On Fri, 27 Sep 2002, Richard Tasker <rtasker@slb.com> wrote:

> I am trying to copy files from /src/blah/I18N -> /output/blah

Is blah a constant or can blah change? I.e. are there multiple values
for blah in a single <copy>?  If so, you'll need to use a regexp
mapper instead of a glob mapper.

<mapper type="regexp" from="(.*)/I18N/(.*)" to="\1/\2"/>

If it is constant, something like

<mapper type="glob" from="blah/I18N/*" to="blah/*"/>

should work (note, no leading slash).

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message