ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Question regarding recursive copy
Date Tue, 15 Aug 2006 13:41:19 GMT

Hi,

just use


 <copy preservelastmodified="yes" todir="./dst">
   <fileset dir="./src" includes="**/*.*"/>
</copy>

instead.

**/*.* means all files in root and all subdirectories
*.* mean all files in root only.

See also Ant manual 
=

Concepts and Types / Directory-based Tasks


Regards, Gilbert

-----Original Message-----
From: Michael Bauroth [mailto:michael.bauroth@falcom.de] 
Sent: Tuesday, August 15, 2006 3:27 PM
To: user@ant.apache.org
Subject: Question regarding recursive copy

Hi,

I'm having the following problem:

I want to make a recursive copy from a src to a dst folder within 
Eclipse. The old command copydir is deprecated and don't support the tag

'preservelastmodified' like the copy command. But with the copy command 
I have the problem, that e.g. for

<copy preservelastmodified="yes" todir="./dst">
   <fileset dir="./src" includes="**"
</copy>

it copies the direct subfolders of src, but the content of the 
subsubfolders will be flattened.
Does somebody know what I mean?

I would be very glad, if somebody has an idea about a solution.

Regards
Michael

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


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


Mime
View raw message