Bugs item #1779301, was opened at 2007-08-22 11:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1779301&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: wohlschlaegerf (wohlschlaegerf)
Assigned to: Nobody/Anonymous (nobody)
Summary: exex target fails if a dir contains a blank

Initial Comment:
Hello guys!

I enjoy you work on nant. It's simply the best tool for building in my opinion. 
But while working with it, i recognized a bug in your <exec> task. In one of my 
nant scripts i used following part of a target:

<exec basedir="${tools.dir}\NUnit\bin"
              useruntimeengine="true"
              workingdir="${test.dir}TestExceptions\temp"
              program="nunit-console.exe"
commandline="${test.dir}TestExceptions\bin\Debug\TestExceptions.dll" 
              if="${debug}"/>

If ${test.dir} contains a blank, like 'C:\Dokumente und 
Einstellungen\Fabian.Wohlschlaeger\Desktop\v2\Test\' following exception is 
thrown:

 [echo] Test des Projekts Exceptions
     [exec] NUnit version 2.4.3
     [exec] Copyright (C) 2002-2007 Charlie Poole.
     [exec] Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. 
Vorontsov.
     [exec] Copyright (C) 2000-2002 Philip Craig.
     [exec] All Rights Reserved.
     [exec] Runtime Environment - 
     [exec]    OS Version: Microsoft Windows NT 5.1.2600.0
     [exec]   CLR Version: 1.1.4322.2407 ( Net 1.1.4322.2407 )
     [exec] Unhandled Exception:
     [exec] System.IO.DirectoryNotFoundException: Ein Teil des Pfades 
Einstellungen\Fabian.Wohlschlaeger\Desktop\v2\Test\TestExceptions\bin\Release 
konnte nicht gefunden werden.
     [exec] Server stack trace: 
     [exec]    at System.IO.__Error.WinIOError(Int32 errorCode, String str)
     [exec]    at System.IO.Directory.SetCurrentDirectory(String path)
     [exec]    at NUnit.Core.DirectorySwapper..ctor(String directoryName)
     [exec]    at NUnit.Core.Builders.TestAssemblyBuilder.Load(String path)
     [exec]    at NUnit.Core.Builders.TestAssemblyBuilder.Build(String 
assemblyName, Boolean autoSuites)
     [exec]    at NUnit.Core.Builders.TestAssemblyBuilder.Build(String 
assemblyName, String testName, Boolean autoSuites)
     [exec]    at NUnit.Core.TestSuiteBuilder.BuildSingleAssembly(TestPackage 
package)
     [exec]    at NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
     [exec]    at NUnit.Core.SimpleTestRunner.Load(TestPackage package)
     [exec]    at NUnit.Core.DelegatingTestRunner.Load(TestPackage package)
     [exec]    at NUnit.Core.DelegatingTestRunner.Load(TestPackage package)
     [exec]    at NUnit.Core.RemoteTestRunner.Load(TestPackage package)
     [exec]    at 
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase
 mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, 
Object[]& outArgs)
     [exec]    at 
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage 
msg, Int32 methodPtr, Boolean fExecuteInContext)
     [exec] Exception rethrown at [0]: 
     [exec]    at 
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, 
IMessage retMsg)
     [exec]    at 
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, 
Int32 type)
     [exec]    at NUnit.Core.TestRunner.Load(TestPackage package)
     [exec]    at NUnit.Util.TestDomain.Load(TestPackage package)
     [exec]    at NUnit.Util.MultipleTestDomainRunner.Load(TestPackage package)
     [exec]    at 
NUnit.ConsoleRunner.ConsoleUi.MakeRunnerFromCommandLine(ConsoleOptions options)
     [exec]    at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options)
     [exec]    at NUnit.ConsoleRunner.Runner.Main(String[] args)

BUILD FAILED

C:\Dokumente und 
Einstellungen\Fabian.Wohlschlaeger\Desktop\v2\Test\TestExceptions\NAnt.build(62,4):
External Program Failed: C:\Dokumente und 
Einstellungen\Fabian.Wohlschlaeger\Desktop\v2\Tools\NUnit\bin\nunit-console.exe 
(return code was -100)
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1779301&group_id=31650

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to