Skip to content

Compiler fails to start when temporary path contains whitespace #18

Closed
@agross

Description

@agross

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions