aboutsummaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
authorBikram Chatterjee <[email protected]>2017-09-06 14:15:51 +0200
committerBikram Chatterjee <[email protected]>2017-09-06 14:15:51 +0200
commitaebdf4f457a5da513c1dd6f6e14c528091a4e000 (patch)
treeab6bc0379d4faad9716d400ed35a82abe62ed9b8 /priv
parentdbe93ae3dad33d3a6721b01a6fdc91b120bd340e (diff)
downloadrelx-aebdf4f457a5da513c1dd6f6e14c528091a4e000.tar.gz
relx-aebdf4f457a5da513c1dd6f6e14c528091a4e000.tar.bz2
relx-aebdf4f457a5da513c1dd6f6e14c528091a4e000.zip
extra flags from vm.args to erlsrv
Diffstat (limited to 'priv')
-rw-r--r--priv/templates/extended_bin_windows13
1 files changed, 13 insertions, 0 deletions
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