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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to