Steve,
 
Have you tried this:
 

<property name="test.deploy.directory" value="\\servername\XmlTestResults" />

<property name="root.directory" value="c:\projects\" />

 

<copy todir="${test.deploy.directory}">

   <fileset basedir="${root.directory}">

      <include name="XmlTestResults\**\*.*" />

   </fileset>

</copy>

 

Felice

 
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Steve Baker
Sent: Monday, November 29, 2004 10:47 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] copy task

I am using the copy task to copy a local directory to a network share. Here is the setup:

 

<property name="test.deploy.directory" value="\\servername\XmlTestResults" />

<property name="root.directory" value="c:\projects\" />

 

<copy todir="${test.deploy.directory}">

   <fileset>

      <include name="${root.directory}XmlTestResults\**\*.*" />

   </fileset>

</copy>

 

The directory structure being copied has sub directories.  The copy task flattens out the file structure however.  I have tried explicitly setting flatten to false. I have even specified includeemptydirs to true.  It still flattens no matter what.  All the sub directories include a “.” In the name (ie Test.Output).  Am I missing something?

 

Thanks,

 

Steve Baker

Consultant

Magenic Technologies

Nobody's more serious about Microsoft.

At the end of the day, it's all just 1's and 0's.

 

Reply via email to