NAnt v0.8.3
.NET FW v1.1.4322
MS Win2k SP4

When building a project that contains embedded raw resources (such as
images), the solution task copies these files to a temporary directory.
When the build is complete, the temporary directory is removed.  However, if
any of the raw resource files were read-only, the directory removal fails:

System.UnauthorizedAccessException: Access to the path "ReadOnlyFilename" is
denied.
   at System.IO.Directory.Delete(String path, Boolean recursive)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

I would suggest ensuring all files in the temporary directory are writable
prior to deleting the directory.  I would also suggest that any
error/exception resulting from the deletion of the temporary directory be
logged as a warning instead of failing the build.

Thanks.


Marc A. Lehnert
Senior Design Engineer
Liebert Monitoring Group
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to