bndtools/bnd — pull request #289 by derheld42 (2012-11-03 21:39:19+00:00)
Title: Allow workspace with space in it to work

This passes the 5 tests on Linux and Windows 7.
All tests pass on Linux after this change.

Windows has other outstanding test failures.. :(

It's possible a better implementation would use ProcessBuilder to launch the process instead of java.exec. I only escaped backslashes and spaces, which isn't full coverage of characters that might need escaping. Unfortunately the set of characters is probably OS specific -- and this might be where ProcessBuilder comes in.

If you want me to investigate ProcessBuilder, I could.