ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <mil...@gmx.de>
Subject Re: simplify copy with regexpmapper (mapper/regexp)
Date Wed, 22 Sep 2010 21:17:00 GMT
Stefan Bodewig schrieb am 20.09.2010 um 17:55 (+0200):
> On 2010-09-17, Niklas Matthies wrote:

> > Anyway, I'd be interested in a solution that really only removes a
> > prefix of the path.
> 
> <http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/types/mappers/CutDirsMapper.java>
> or for the full commit including rudimentary documentation and tests
> <http://svn.apache.org/viewvc?view=revision&revision=998962>

Thanks!

> I couldn't figure out from the man-page (and was too lazy to trie) what
> wget does if you specify --cut-dirs=12 but the path is only two levels
> deep.

It'll flatten the structure, like melting butter in the pan.

> The mapper will currently behave in a not-my-business way like
> the regexp mapper does when the from regex doesn't match.

Also fine.

-- 
Michael Ludwig

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


Mime
View raw message