ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Gugel" <alex.gu...@100world.de>
Subject How can I copy directories?
Date Mon, 11 Jun 2001 09:40:27 GMT
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. How can I do this? A <mapper
type="flatten"/> flattens all! And without flatten I have all the
prefixes (which I don't know and don't want).

I tried this:

<!-- copy all files to lib -->
<copy toDir="lib">
 <fileset dir="contrib">
  <include name="**/build/jar/*"/>
 </fileset>

 <mapper type="flatten"/>
</copy>

Then I have ALL files (*.sth too) directly in "lib" (the sturcture of
each "build/jar" got lost)

I tried 

<!-- copy all files to the lib -->
<copy toDir="lib">
 <fileset dir="contrib">
  <include name="**/build/jar"/>
 </fileset>

 <mapper type="flatten"/>
</copy>

But only empty directories are copied.
Can anyone help me?

thanks

alex



Alexander Gugel                     100world.com AG
Abteilung                           Vordere Cramergasse 11
Fon: +49 (0)911 4244-210            D-90478 N├╝rnberg
Fax: +49 (0)911 4244-XXX      
alex.gugel@100world.com             www.100world.com


Mime
View raw message