Title: Nant Bug?
Erv,
 
This issue has been reported before and will be fixed in the next rc.
 
Gert
----- Original Message -----
From: Erv Walter
Sent: Friday, December 12, 2003 5:22 PM
Subject: [nant-dev] Nant Bug?

One of my team members sent me some details on a possible bug with resource handling.  It was working in an old version of Nant and they are seeing the following problem when testing the latest RC.  It seems that CompilerBase is trying to clean up compiled resource files when no such file exists:

PROBLEM (MAYBE TO E-MAIL):

There definitely does seem to be a problem when using the “prefix” parameter of a resourcefileset:

      <resources prefix="xxx_X.resources.">

        <includes name="Handheld\xxx_X\resources\**\*.bmp"/>

      </resources>

 

I also tried using the ‘dynamicprefix’ parameter some too… but it didn’t work too well either (same issue with an error not being able to “clean” file it created).

 

BACKGROUND:

I take away the prefix=”xxx_X.resources.” and it compiles just fine… but then our embedded images don’t have the right namespace(s) anymore.  Actually, this thing does compile successfully, but the whole NAnt build doesn’t finish successfully, error below, and there’s some new files left lying around.  For example, if I have a file called “Help.bmp” in Handheld\xxx_X\resources\ before the build and use the resourcefileset above, it is correctly embeds the image and it is available in the assembly compiled (via GetManifestResourceStream("xxx_X.resources.Help.bmp")), but then there is a new file (xxx_X.resources.Help.bmp) left around in Handheld\xxx_X\resources\.

 

NANT ERROR:

      NAnt 0.84 (Build 0.84.1435.0; net-1.0.win32; rc 1; 12/6/2003)

      Copyright (C) 2001-2003 Gerry Shaw

      http://nant.sourceforge.net

       

       

      BUILD FAILED

       

      INTERNAL ERROR

       

      System.UnauthorizedAccessException: Access to the path "C:\EpicSource\EpicOnHand\src\Handheld\xxx-X\resources\xxx_X.reso

      urces.Help.bmp" is denied.

         at System.IO.__Error.WinIOError(Int32 errorCode, String str)

         at System.IO.File.Delete(String path)

         at NAnt.DotNet.Tasks.CompilerBase.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()

       

      Please send bug report to [EMAIL PROTECTED]

       

      Total time: 0.4 seconds.

       

      Press any key to continue . . .

Reply via email to