Hi Felice,
 
The behavior is by design. But I agree that this should be documented in the <copy> task help.
 
Can you submit a bug report for this, so we don't forget ?
 
Thanks,
 
Gert


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Felice Vittoria
Sent: maandag 29 november 2004 20:27
To: Steve Baker; [EMAIL PROTECTED]
Subject: RE: [Nant-users] copy task

Steve,
 
The latest Nant's copy task help is located here:  http://nant.sourceforge.net/nightly/latest/help/tasks/copy.html
 
From looking at the help, the basedir value is always used w/ the fileset task.   I'm not sure if what you observed (by omitting the basedir value) is a bug or per design.
 
Felice
-----Original Message-----
From: Steve Baker [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 1:19 PM
To: Felice Vittoria; [EMAIL PROTECTED]
Subject: RE: [Nant-users] copy task

Felice,

 

Thanks that worked.  Is this documented anywhere?

 

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.

 


From: Felice Vittoria [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 12:57 PM
To: Steve Baker; [EMAIL PROTECTED]
Subject: RE: [Nant-users] copy task

 

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