documentcloud/closure-compiler — Issue #18: Compiler fails to start when temporary path contains whitespace
Author: agross
Created: 2012-02-12 01:51:00+00:00
State: open

Tested on Windows. When I run a build with TeamCity $TEMP a path that contains whitespace. `TempFile.new` copies the compiler jar over there and then tries to run it. That fails because the jarfile path needs escaping.

I don't know if my fix would work in Linux, for Windows at least we need to quote paths.

Perhaps the best way is to let Ruby do the escaping and rather use `system *[command, '--js', tempfile.path]`, check the exit code, or use `popen`.