I encourage you to grab the current cvs tree before sending patches. There have been substantial changes since the 0.84 release.

http://sourceforge.net/cvs/?group_id=31650

thanks,

Ian


Steve Burkett wrote:

Couple of bugs in NANT NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 
12/26/2003).

(1)  line 221 of project.cs.   When you have a project File that has no DependentUpon 
(like a xml resource), this line caused an internal error.  I fixed it with the blue 
code below.

FileInfo fi = new FileInfo(outputFile);
if (buildAction == "Compile") {
    _htFiles[fi.FullName] = null;
} else if (buildAction == "EmbeddedResource") {
Resource r = new Resource(this, fi.FullName, elemFile.Attributes["RelPath"].Value, 
(elemFile.Attributes["DependentUpon"]!= null) ? fi.DirectoryName + @"\" + 
elemFile.Attributes["DependentUpon"].Value : null, SolutionTask);
_htResources[r.InputFile] = r;
}

(2) line 158 of project.cs.  Not sure how to fix this yet, but wanted to let you know about it.  
For a webservice project, the red line below fetches the solution's file name.  Later, when the 
project direction is "combined" with the project reference's HintPath, it creates an 
invalid location for the reference.  This is causing my solution task to fail.

           if (!_isWebProject) {
               _projectDirectory = new FileInfo(projectPath).DirectoryName;
           } else {
               string projectDirectory = projectPath.Replace(":", "_");
               projectDirectory = projectDirectory.Replace("/", "_");
               projectDirectory = projectDirectory.Replace("\\", "_");
               projectDirectory = 
Path.Combine(_projectSettings.TemporaryFiles.BasePath, projectDirectory);
               Directory.CreateDirectory(projectDirectory);

               webCacheDirectory = projectDirectory;
               _webProjectBaseUrl = projectPath.Substring(0, 
projectPath.LastIndexOf("/"));
               _projectDirectory = Path.GetDirectoryName(sln.FileName);
           }







--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to