plugins load for windows

This commit is contained in:
huangdan 2015-08-24 11:33:16 +08:00
parent 0894d4f8e4
commit 307bce2e1d
2 changed files with 62 additions and 41 deletions

View File

@ -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

View File

@ -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