I think the includes should either be "*.*", or if you want to use the "**" shorthand value then you also need to specify a partial path.  I happen to have been looking at this this mrning and that's what I gathered from the task list documentation (I haven't tried this myself).
 
-----Original Message-----
From: Bob Archer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 3:31 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] copy file problem

I'm using the 5/3 nightly build with the following script:

 

            <target name="CopyToQA" description="Copy to QA directory.">

                        <echo message="Copy runtime files to QA." />

                        <copy todir="\\qaevolution2003\wwwroot\Geac.QA" >

                                    <fileset basedir="\\devevolution2k3\C$\DailyBuild\">

                                                <includes name="**" />

                                    </fileset>

                        </copy>           

            </target>          

 

Getting the following error:

 

System.ArgumentException: Invalid File or Directory attributes value.

   at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)

   at NAnt.Core.Tasks.CopyTask.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Te

mp\tmp9E.tmp\src\NAnt.Core\Tasks\CopyTask.cs:line 314

   at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\s

rc\NAnt.Core\Task.cs:line 151

   at NAnt.Core.Target.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp

\src\NAnt.Core\Target.cs:line 249

   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in

 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\src\NAnt.Core\Project.cs:line 892

   at NAnt.Core.Project.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tm

p\src\NAnt.Core\Project.cs:line 849

   at NAnt.Core.Project.Run() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\sr

c\NAnt.Core\Project.cs:line 917

 

Please send bug report to [EMAIL PROTECTED].

 

 

 

What am I doing wrong? For some reason, I thought this had worked when I wrote it.

 

Bob

 

Reply via email to