Permalink
Browse files

Ensure current rebar builds a working joxa escript

When building the joxa shell with the most current version of rebar
(i.e., 1b52a597), the resulting escript does not work anymore.

This is because the Erlang emulator doesn't read from stdin anymore due
to the now default `escript_emu_args` options
"%%! -pa joxa/joxa/ebin -noshell -noinput" being passed to it by the
escript.

Explicitly setting the `escript_emu_args` in rebar.config to "%%!\n",
which is the default in the most recent rebar release 2.0.0 and also
the default according to the current documentation in the rebar wiki
(https://github.com/basho/rebar/wiki/Rebar-commands), fixes that issue.

Signed-off-by: Eric Merritt <ericbmerritt@gmail.com>
  • Loading branch information...
1 parent 7957b28 commit 1ad14e69117469147d33ddab52973cf1b015e65f @KlausTrainer KlausTrainer committed with Sep 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 rebar.config
View
@@ -17,4 +17,6 @@
{escript_incl_apps,
[erlware_commons, getopt]}.
+{escript_emu_args, "%%!\n"}.
+
{post_hooks, [{compile, "make jxa"}]}.

0 comments on commit 1ad14e6

Please sign in to comment.