Support for whitespace for bootstrap/casper_path
Adding quotations around the file path to allow whitespace in the path for the bootstrap.js file passed to the execution engine and the CASPER_PATH argument.
Showing
2 changed files
with
2 additions
and
2 deletions
No preview for this file type
... | @@ -149,8 +149,8 @@ class casperjs { | ... | @@ -149,8 +149,8 @@ class casperjs { |
149 | var CASPER_COMMAND = new List<string>(ENGINE_EXEC); | 149 | var CASPER_COMMAND = new List<string>(ENGINE_EXEC); |
150 | CASPER_COMMAND.AddRange(ENGINE_ARGS); | 150 | CASPER_COMMAND.AddRange(ENGINE_ARGS); |
151 | CASPER_COMMAND.AddRange(new [] { | 151 | CASPER_COMMAND.AddRange(new [] { |
152 | Path.Combine(Path.Combine(CASPER_PATH, "bin"), "bootstrap.js"), | 152 | @"""" + Path.Combine(CASPER_PATH, "bin\\bootstrap.js") + @"""", |
153 | "--casper-path=" + CASPER_PATH, | 153 | @"--casper-path=""" + CASPER_PATH + @"""", |
154 | "--cli" | 154 | "--cli" |
155 | }); | 155 | }); |
156 | CASPER_COMMAND.AddRange(CASPER_ARGS); | 156 | CASPER_COMMAND.AddRange(CASPER_ARGS); | ... | ... |
-
Please register or sign in to post a comment