diff options
author | Lukas Larsson <[email protected]> | 2012-09-10 10:52:54 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-09-10 10:52:54 +0200 |
commit | 0d297680b28e6ac398f212cbccf1f0b704a5a921 (patch) | |
tree | 4851333cb3b93ff63f9518df7bede5e52ad1d14c /lib/jinterface/test/jitu.erl | |
parent | ba69fe53d60386c31852b8114d35eef5d2852bfe (diff) | |
parent | 1c0608f29558697ec9521467a5f6e632f94a302d (diff) | |
download | otp-0d297680b28e6ac398f212cbccf1f0b704a5a921.tar.gz otp-0d297680b28e6ac398f212cbccf1f0b704a5a921.tar.bz2 otp-0d297680b28e6ac398f212cbccf1f0b704a5a921.zip |
Merge branch 'maint'
* maint:
Do not build jinterface test if there is no jinterface
Escape whitespace in path
Diffstat (limited to 'lib/jinterface/test/jitu.erl')
-rw-r--r-- | lib/jinterface/test/jitu.erl | 12 |
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], |