This means that we can't rely on using just the filename - we'll have to store both the filename and the associated resource name so that we can use both to write the /resource option as we did before:
"/resource:G:\nant-0.84\tests\NAnt.Core\Resources\Build.Files\Invalid\BadRoot.xml,XML:.Build.Files.Invalid.BadRoot.xml"
406 string manifestResourceName = this.GetManifestResourceName(
407 resources, fileName);
...
string tmpResourcePath = fileName.Replace(Path.GetFileName(fileName), manifestResourceName);
if (tmpResourcePath != fileName) {
// copy resource file to filename matching
// manifest resource name
File.Copy(fileName, tmpResourcePath, true);
// make sure copy is removed later on compiledResourceFiles.Add(tmpResourcePath); }
Ian
Nicklas Norling wrote:
Hi.
Downloaded the nightly build 20031206 and tried to compile it using NAnt from within a VS .NET prompt.
The results: [nant] C:\Csharp\nant-20031206\tests\NAnt.Core\NAnt.Core.build build
Buildfile: file:///C:/Csharp/nant-20031206/tests/NAnt.Core/NAnt.Core .build Target(s) specified: build
build:
[csc] Compiling 42 files to C:\Csharp\nant-20031206/build/net- 1.1.win32/nant-0.84-debug/bin/NAnt.Core.Tests.dll.
BUILD FAILED
INTERNAL ERROR
System.NotSupportedException: The given path's format is not support ed. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boo lean needFullPath) at System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Bool ean checkForDuplicates, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionA ccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFul lPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Bo olean overwrite) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean ov erwrite) at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCAL S~1\Temp\tmp30B.tmp\src\NAnt.DotNet\Tasks\CompilerBase.cs:line 413 at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.tmp\ src\NAnt.Core\Task.cs:line 151 at NAnt.Core.Target.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.tm p\src\NAnt.Core\Target.cs:line 207 at NAnt.Core.Project.Execute(String targetName) in C:\DOCUME~1\ADMINI~1\LOCAL S~1\Temp\tmp30B.tmp\src\NAnt.Core\Project.cs:line 757 at NAnt.Core.Project.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.t mp\src\NAnt.Core\Project.cs:line 733 at NAnt.Core.Project.Run() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.tmp\s rc\NAnt.Core\Project.cs:line 782
Please send bug report to [EMAIL PROTECTED]
Total time: 0.1 seconds.
BUILD FAILED
Also tried to get the corresponding NAntContrib but that zip archive was corrupt no matter how hard I tried to redownload and unzipp.
Is it just me, or is it Monday? /Nicke
-------------------------------------------------------
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- 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-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers