From aebdf4f457a5da513c1dd6f6e14c528091a4e000 Mon Sep 17 00:00:00 2001 From: Bikram Chatterjee Date: Wed, 6 Sep 2017 14:15:51 +0200 Subject: extra flags from vm.args to erlsrv --- priv/templates/extended_bin_windows | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'priv') diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows index 139edaa..fc15b74 100644 --- a/priv/templates/extended_bin_windows +++ b/priv/templates/extended_bin_windows @@ -53,6 +53,19 @@ set cookie=%%J ) +:: Collect any additional VM args into erl_opts +@setlocal EnableDelayedExpansion +@for /f "usebackq tokens=1-2" %%I in (`findstr /r "^[^#]" "%vm_args%"`) do @( + if not "%%I" == "-name" ( + if not "%%I" == "-sname" ( + if not "%%I" == "-setcookie" ( + set erl_opts=!erl_opts! %%I %%J + ) + ) + ) +) +@endlocal && set erl_opts=%erl_opts% + :: Write the erl.ini file to set up paths relative to this script @call :write_ini -- cgit v1.2.3