This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 50986

Summary: xtest fails to execute tests on a source tree with spaces
Product: obsolete Reporter: Jan Chalupa <jchalupa>
Component: xtestAssignee: issues@obsolete <issues>
Status: CLOSED FIXED    
Severity: blocker Keywords: SPACE_IN_PATH
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Patch

Description Jan Chalupa 2004-10-29 21:41:43 UTC
[custom build of 20041029 sources; JDK 1.4.2_04]

I've been running into this for months, but 
never get to report it. Xtest fails to execute 
tests on the NB source tree if it's checked out 
into a path with spaces. Both 'buildfile' 
and 'logfile' arguments passed to the test 
executor are corrupted and the tests cannot be 
run.

I'll attach a simple patch shortly. It works for 
me on Windows, but I haven't tested in on Unix, 
so am not sure of the extra quoting works there 
too.
Comment 1 Jan Chalupa 2004-10-29 21:43:16 UTC
Created attachment 18614 [details]
Patch
Comment 2 Jiri Skrivanek 2004-11-08 13:28:10 UTC
Thanks for contribution. The patch applied and tested on windows and
solaris.

/cvs/xtest/src/org/netbeans/xtest/NbExecutor.java,v  <--  NbExecutor.java
new revision: 1.24; previous revision: 1.23
Comment 3 Jan Chalupa 2005-05-12 10:21:02 UTC
Works ok now. Verified.