aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/test/jitu.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-09-03 11:16:25 +0200
committerLukas Larsson <[email protected]>2012-09-03 14:09:27 +0200
commita45a78d2e9281f57b04015a46cb76baf7d257ace (patch)
tree53b934f9ee7ba6d49d3ff5586e8391068d51d3fb /lib/jinterface/test/jitu.erl
parent258f6b8df56d113b100b55e9e124099f13014935 (diff)
downloadotp-a45a78d2e9281f57b04015a46cb76baf7d257ace.tar.gz
otp-a45a78d2e9281f57b04015a46cb76baf7d257ace.tar.bz2
otp-a45a78d2e9281f57b04015a46cb76baf7d257ace.zip
Escape whitespace in path
Diffstat (limited to 'lib/jinterface/test/jitu.erl')
-rw-r--r--lib/jinterface/test/jitu.erl12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/jinterface/test/jitu.erl b/lib/jinterface/test/jitu.erl
index c57fb9bfad..fb262cf9d7 100644
--- a/lib/jinterface/test/jitu.erl
+++ b/lib/jinterface/test/jitu.erl
@@ -89,13 +89,19 @@ classpath(Dir) ->
{win32, _} -> ";";
_ -> ":"
end,
- Dir++PS++
+ es(Dir++PS++
filename:join([code:lib_dir(jinterface),"priv","OtpErlang.jar"])++PS++
case os:getenv("CLASSPATH") of
false -> "";
Classpath -> Classpath
- end.
-
+ end).
+
+es(L) ->
+ lists:flatmap(fun($ ) ->
+ "\\ ";
+ (C) ->
+ [C]
+ end,lists:flatten(L)).
cmd(Cmd) ->
PortOpts = [{line,80},eof,exit_status,stderr_to_stdout],