-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classpath with spaces causes FitNesse test to hang #498
Comments
The workaround of course is to avoid directory/file names containing spaces. |
We're not executing through a shell, so the class path items should not be quoted. Same goes for the executable name, btw (#499). |
amolenaar
added a commit
that referenced
this issue
Jul 30, 2014
a0e53cd appears to fix the issue for me. |
Should have been fixed by #508. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using release 20140630 on Windows.
Having the following directory setup:
SpaceTest\content.txt
(a test page):HelloFixture.java
:Running the given test causes FitNesse to hang.
As commented to #497, I've identified the problem appears to be:
fitnesse.wiki.ClassPathBuilder.addPathToClassPathString(ClassPathBuilder.java:83)
where
surroundPathWithQuotesIfItHasSpaces(path)
is invoked. This constructs a classpath argument like:Changing it to:
corrects the problem.
It may have been once necessary, before 32029b0, but now using the
java.lang.ProcessBuilder(String[])
constructor this additional quoting actually breaks it.The text was updated successfully, but these errors were encountered: