Use Runtime.exec(String[]) in fitnesse.testsystems.CommandRunner #278

javahelp opened this Issue Jun 29, 2013 · 3 comments

2 participants


In the method fitnesse.testsystems.CommandRunner.asynchronousStart() it uses Java's Runtime.exec() method.

Runtime.exec() has overloaded methods. In some, the command is a String which gets parsed with a java.util.StringTokenizer. In others, the command is already a String[] and does not get further parsed.

On non-Windows OS's, if there happens to be whitespace in the classpath, then Runtime.exec() will fail using the String versions, but the String[] versions work.


This issue definitely needs some attention. Using a String[] to pass the command line arguments is much saver than relying on a string tokenizer.

How should this work in conjunction with the COMMAND_PATTERN, for example?


I tried to fix the issues with pull request #437. Can you check if it works out (or what's missing)?

@amolenaar amolenaar added this to the Next release milestone May 18, 2014

#437 should fix this.

@amolenaar amolenaar closed this May 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment