plugins load for windows
This commit is contained in:
parent
0894d4f8e4
commit
307bce2e1d
|
@ -1,4 +1,6 @@
|
||||||
|
@echo off
|
||||||
@setlocal
|
@setlocal
|
||||||
|
@setlocal enabledelayedexpansion
|
||||||
|
|
||||||
@set node_name=emqttd
|
@set node_name=emqttd
|
||||||
|
|
||||||
|
@ -69,7 +71,16 @@
|
||||||
@goto :EOF
|
@goto :EOF
|
||||||
|
|
||||||
:console
|
:console
|
||||||
@start "%node_name% console" %werl% -boot "%node_boot_script%" -config "%sys_config%" -args_file "%vm_args%" -sname %node_name%
|
set dest_path=%~dp0
|
||||||
|
cd /d !dest_path!..\plugins
|
||||||
|
set current_path=%cd%
|
||||||
|
set plugins=
|
||||||
|
for /d %%P in (*) do (
|
||||||
|
set "plugins=!plugins!!current_path!\%%P\ebin "
|
||||||
|
)
|
||||||
|
cd /d %node_root%
|
||||||
|
|
||||||
|
@start "%node_name% console" %werl% -boot "%node_boot_script%" -config "%sys_config%" -args_file "%vm_args%" -sname %node_name% -pa %plugins%
|
||||||
@goto :EOF
|
@goto :EOF
|
||||||
|
|
||||||
:query
|
:query
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
@setlocal
|
@setlocal
|
||||||
|
@echo off
|
||||||
|
@setlocal enabledelayedexpansion
|
||||||
|
|
||||||
@rem Parse arguments. erlsrv.exe prepends erl arguments prior to first ++.
|
@rem Parse arguments. erlsrv.exe prepends erl arguments prior to first ++.
|
||||||
@rem Other args are position dependent.
|
@rem Other args are position dependent.
|
||||||
|
@ -33,7 +35,15 @@
|
||||||
@set vm_args="%node_root%\etc\vm.args"
|
@set vm_args="%node_root%\etc\vm.args"
|
||||||
)
|
)
|
||||||
|
|
||||||
@%erl_exe% %erl_args% -boot %boot_file% -config %app_config% -args_file %vm_args%
|
set dest_path=%~dp0
|
||||||
|
cd /d !dest_path!..\plugins
|
||||||
|
set current_path=%cd%
|
||||||
|
set plugins=
|
||||||
|
for /d %%P in (*) do (
|
||||||
|
set "plugins=!plugins!!current_path!\%%P\ebin "
|
||||||
|
)
|
||||||
|
cd /d %node_root%
|
||||||
|
@%erl_exe% %erl_args% -boot %boot_file% -config %app_config% -args_file %vm_args% -pa %plugins%
|
||||||
|
|
||||||
:set_trim
|
:set_trim
|
||||||
@set %1=%2
|
@set %1=%2
|
||||||
|
|
Loading…
Reference in New Issue