ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: How can I copy directories?
Date Mon, 11 Jun 2001 09:50:00 GMT
Alex Gugel <alex.gugel@100world.de> wrote:

> Suppose I have the following structure:
> 
> contrib/aaa/bbb/ccc/build/jar/*.jar
> contrib/aaa/bbb/ccc/build/jar/sth/*.sth
> contrib/eee/build/jar/*.jar
> contrib/fff/fff/build/jar/*.*
> 
> I want to copy all "build/jar" directories to "lib" but the
> structure of each "build/jar" should be maintained.

Using a regexp-mapper (after installing Jakarta-Regexp or
Jakarta-ORO!) should work, something like

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

Stefan

Mime
View raw message