Seems like i'm not the only one getting the build failure of 2003 (expected
2004) in 0.84 the first time it's installed :)
After much tracing I found that it checks the copyright notice (as opposed
to the assembly build number + 2000/1/1), so adjusting that to 2004 made it
sweet.

Anyway, that is not my main problem now. The sample build still fails as it
tries to run the "test" target in VisualCpp.build. My build output goes to
D:\development\projects\NAnt/build/net-1.1.win32/nant-0.84-debug

below is the log saved, showing the prior successful test, plus the first
failed test of eight.
------------------------------------------------------------
                 [nant]
D:\development\projects\NAnt\tests\NAnt.Win32\NAnt.Win32.build test
            
                        Buildfile:
file:///D:/development/projects/NAnt/tests/NAnt.Win32/NAnt.Win32.build
                        Target(s) specified: test 
                        
                        build:
                        
                        
                        test:
                        
                           [nunit2] Tests run: 3, Failures: 0, Not run: 0,
Time: 3.1645504 seconds
            
            
            
                        
                        BUILD SUCCEEDED
                        
                        Total time: 3.7 seconds.
            
                 [nant]
D:\development\projects\NAnt\tests\NAnt.VisualCpp\NAnt.VisualCpp.build test
            
                        Buildfile:
file:///D:/development/projects/NAnt/tests/NAnt.VisualCpp/NAnt.VisualCpp.bui
ld
                        Target(s) specified: test 
                        
                        build:
                        
                        
                        test:
                        
                           [nunit2] Tests run: 8, Failures: 8, Not run: 0,
Time: 3.00432 seconds
            
            Failures:
            1)
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWorldCompile :
Tests.NAnt.Core.TestBuildException : Error Executing Project
              ----> NAnt.Core.BuildException :
C:\DOCUME~1\Aaron\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloW
orld\test.build(3,22):
            [cl] cl failed to start.
              ----> System.ComponentModel.Win32Exception : The system cannot
find the file specified
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
d:\development\projects\NAnt\tests\NAnt.Core\BuildTestBase.cs:line 149
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in d:\development\projects\NAnt\tests\NAnt.Core\BuildTestBase.cs:line
99
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
d:\development\projects\NAnt\tests\NAnt.Core\BuildTestBase.cs:line 72
               at
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWorldCompile() in
d:\development\projects\NAnt\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs:line
64
            --TestBuildException
               at NAnt.Core.Tasks.ExternalProgramBase.StartProcess() in
d:\development\projects\NAnt\src\NAnt.Core\Tasks\ExternalProgramBase.cs:line
354
               at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() in
d:\development\projects\NAnt\src\NAnt.Core\Tasks\ExternalProgramBase.cs:line
242
               at NAnt.VisualCpp.Tasks.ClTask.ExecuteTask() in
d:\development\projects\NAnt\src\NAnt.VisualCpp\Tasks\ClTask.cs:line 320
               at NAnt.Core.Task.Execute() in
d:\development\projects\NAnt\src\NAnt.Core\Task.cs:line 151
               at NAnt.Core.Project.InitializeProjectDocument(XmlDocument
doc) in d:\development\projects\NAnt\src\NAnt.Core\Project.cs:line 1192
               at NAnt.Core.Project.Execute() in
d:\development\projects\NAnt\src\NAnt.Core\Project.cs:line 725
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
d:\development\projects\NAnt\tests\NAnt.Core\BuildTestBase.cs:line 146
            --BuildException
               at
System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
startInfo)
               at System.Diagnostics.Process.Start()
               at NAnt.Core.Tasks.ExternalProgramBase.StartProcess() in
d:\development\projects\NAnt\src\NAnt.Core\Tasks\ExternalProgramBase.cs:line
349
------------------------------------------------------------ 

All eight tests in VisualCpp fails due to the same error. I figure it cannot
find any file because it is somehow accessing my user temp dir
"C:\DOCUME~1\Aaron\LOCALS~1\Temp\"

Up to now i am still trying to determine _how_ it ends up using that
directory structure instead of the one setup in my D:\; the code doesn't
feature any hard coded directories, and the build XML content is normal like
the other tests' build content.

Any idea what else should be configured on my part so the test properly
accesses the correct path?


thanks,
Aaron



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to