EclipseCall fails to launch eclipse with spaces in path
Status: Beta
Brought to you by:
mischu
When using eclipseCall with an instance of eclipse which's path contains spaces, eclipseCall fails to launch eclipse.
e.g the arguments being:
"Y:\some\file\in\my\workspace.txt" -G95,1-1 -E"Y:\ClassiX eclipse\eclipse.exe"
(what is killing the process is the space after "classix")
This behaviour occurs, because in CallClient.java:91 you use
Runtime.getRuntime().exec(eclipse);
This method applies the StringTokenizer and therefore splits the executable's path. To prevent this, you could replace the line with the following:
Runtime.getRuntime().exec(new String[] { eclipse });
Thanks.