aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-09-10 10:51:57 +0200
committerLukas Larsson <[email protected]>2012-09-10 10:51:57 +0200
commit1c0608f29558697ec9521467a5f6e632f94a302d (patch)
tree036f3beed62c44ac29454c1ad2e97efa9eb04a45 /lib
parent7e200a6e6e182f37f9ab6f0a74056b2936bc27a1 (diff)
parent11496033f0405437bcef893362f5507b4a79b5c3 (diff)
downloadotp-1c0608f29558697ec9521467a5f6e632f94a302d.tar.gz
otp-1c0608f29558697ec9521467a5f6e632f94a302d.tar.bz2
otp-1c0608f29558697ec9521467a5f6e632f94a302d.zip
Merge branch 'lukas/jinterface/whitespace_test_fix' into maint
* lukas/jinterface/whitespace_test_fix: Do not build jinterface test if there is no jinterface Escape whitespace in path
Diffstat (limited to 'lib')
-rw-r--r--lib/ic/test/java_client_erl_server_SUITE_data/Makefile.src5
-rw-r--r--lib/jinterface/test/jitu.erl12
2 files changed, 13 insertions, 4 deletions
diff --git a/lib/ic/test/java_client_erl_server_SUITE_data/Makefile.src b/lib/ic/test/java_client_erl_server_SUITE_data/Makefile.src
index c106261efd..ac8f2e619f 100644
--- a/lib/ic/test/java_client_erl_server_SUITE_data/Makefile.src
+++ b/lib/ic/test/java_client_erl_server_SUITE_data/Makefile.src
@@ -66,8 +66,11 @@ CLASS_FILES = $(JAVA_FILES:.java=.class)
ERL_FILES = $(GEN_ERL_FILES) m_i_impl.erl
EBINS = $(ERL_FILES:.erl=.@EMULATOR@)
-
+@IFEQ@ (@jinterface_classpath@,)
+all:
+@ELSE
all: $(CLASS_FILES) $(EBINS)
+@ENDIF@
$(GEN_ERL_FILES) $(GEN_HRL_FILES): java_erl_test.built_erl
$(GEN_JAVA_FILES): java_erl_test.built_java
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],