2016-07-19 12:22:49 +00:00
|
|
|
set NOPAUSE=true
|
2017-05-18 21:47:12 +00:00
|
|
|
setlocal EnableDelayedExpansion
|
2016-07-19 12:22:49 +00:00
|
|
|
|
2017-05-18 21:47:12 +00:00
|
|
|
for %%a in (%AUTH_PATCH_ZIPS%) do (
|
|
|
|
set patch=%%a
|
|
|
|
if "!patch:~0,4!"=="http" (
|
|
|
|
powershell -command "& { iwr %%a -OutFile %cd%\patch.zip }"
|
|
|
|
call %JBOSS_HOME%\bin\jboss-cli.bat --command="patch apply %cd%\patch.zip
|
|
|
|
) else (
|
|
|
|
call %JBOSS_HOME%\bin\jboss-cli.bat --command="patch apply %%a"
|
|
|
|
)
|
|
|
|
if %ERRORLEVEL% neq 0 set ERROR=%ERRORLEVEL%
|
|
|
|
)
|
|
|
|
exit /b %ERROR%
|