Title: NAnt bug (sort of)

I am sometimes getting the below error message in my log emails.  I believe the reason is that the .NET solution is open in Visual Studio, and therefore NAnt's file copy command is blocked by VS.NET's lock on the files.

This isn't really a bug, but you guys might want to add a more friendly error message, like "Copy failed: Unable to overwrite existing files.  Destination files are locked.".

Here is the NAnt XML Build Script that I am executing:
                <copy todir="../Test" overwrite="true">
                        <fileset basedir="\\source\Web Reporting\Deployment\Test">
                                <include name="**/*" />
                        </fileset>
                </copy>

Thanks,

Mike Wyatt
Quad/Graphics Software Developer

-----Original Message-----
From: WebReportsBuildScript [mailto:WebReportsBuildScript]
Sent: Thursday, May 12, 2005 10:39 AM
To: Wyatt, Mike
Subject: Web Reports Build Failed


Buildfile: file:///c:/inetpub/wwwroot/QuadWebReports/ImagingWebReports/webreports.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: BuildDebug DeployTest


BuildDebug:

 [solution] Starting solution build.
 [solution] Building 'ImagingWebReports' [debug] ...

DeployTest:


BUILD FAILED

INTERNAL ERROR

System.ArgumentException: Invalid File or Directory attributes value.
   at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
   at NAnt.Core.Tasks.CopyTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]

Total time: 0.5 seconds.


Reply via email to