27 lines
539 B
Batchfile
27 lines
539 B
Batchfile
@echo off
|
|
setlocal EnableExtensions
|
|
|
|
set "APPDIR=%~dp0"
|
|
set "EXE=%APPDIR%BizTalkApplicationCatalog.exe"
|
|
|
|
if not exist "%EXE%" (
|
|
echo FEHLER: Anwendung fehlt: "%EXE%"
|
|
exit /b 2
|
|
)
|
|
if "%~1"=="" goto :usage
|
|
if "%~2"=="" goto :usage
|
|
|
|
if "%~3"=="" (
|
|
set "OUTPUT=%CD%\BizTalk-Anwendungskatalog\ACC-PROD"
|
|
) else (
|
|
set "OUTPUT=%~3"
|
|
)
|
|
|
|
"%EXE%" --merge --acc-json "%~1" --prod-json "%~2" --output "%OUTPUT%"
|
|
exit /b %ERRORLEVEL%
|
|
|
|
:usage
|
|
echo Aufruf:
|
|
echo run-merge.cmd ACC-SNAPSHOT.json PROD-SNAPSHOT.json [AUSGABEORDNER]
|
|
exit /b 2
|