This way...

<copy todir="${srcDir}">
   <fileset basedir="${destDir}>
      <include name="**\*" />

From: Chris Fouts []
Sent: Wednesday, May 30, 2012 3:13 PM
Subject: [NAnt-users] Help copying a folder structure

I looked at this, and googled 

I want to copy files from ${srcDir} to ${destDir} and preserve the directory 
struncture. I tried this, but the directory structure is NOT preserved in 
${destDir}. Any clues?

<copy todir="${srcDir}">
      <include name="${destDir}\**\*" />


***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
NAnt-users mailing list

Reply via email to