diff --git a/scripts/conf2cf.cmd b/scripts/conf2cf.cmd index a2b8f6f..533b25a 100644 --- a/scripts/conf2cf.cmd +++ b/scripts/conf2cf.cmd @@ -160,11 +160,14 @@ IF not ERRORLEVEL 0 ( IF not exist "%IB_PATH%" md "%IB_PATH%" IF "%V8_CONVERT_TOOL%" equ "designer" ( + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log echo [INFO] Creating infobase "%IB_PATH%"... - %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i echo [INFO] Loading infobase "%IB_PATH%" configuration from XML-files "%XML_PATH%"... - %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /DisableStartupDialogs /LoadConfigFromFiles "%XML_PATH%" + %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadConfigFromFiles "%XML_PATH%" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( echo [INFO] Creating infobase "%IB_PATH%" with configuration from XML-files "%XML_PATH%"... %IBCMD_TOOL% infobase create --db-path="%IB_PATH%" --create-database --import="%XML_PATH%" @@ -178,7 +181,9 @@ IF not ERRORLEVEL 0 ( echo [INFO] Export infobase "%IB_PATH%" configuration to "%V8_DST_PATH%"... IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpCfg "%V8_DST_PATH%" + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpCfg "%V8_DST_PATH%" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_IB_SERVER ( %IBCMD_TOOL% infobase config save --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_IB_SERVER% --db-name="%V8_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" "%V8_DST_PATH%" diff --git a/scripts/conf2edt.cmd b/scripts/conf2edt.cmd index 479c6cd..20ec288 100644 --- a/scripts/conf2edt.cmd +++ b/scripts/conf2edt.cmd @@ -137,7 +137,7 @@ echo [INFO] Creating infobase "%IB_PATH%" from file "%V8_SRC_PATH%"... IF not exist "%IB_PATH%" md "%IB_PATH%" IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /UseTemplate "%V8_SRC_PATH%" + %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /UseTemplate "%V8_SRC_PATH%" ) ELSE ( IF defined V8_IB_SERVER ( %IBCMD_TOOL% infobase create --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_IB_SERVER% --db-name="%V8_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --create-database --load="%V8_SRC_PATH%" @@ -157,7 +157,9 @@ echo [INFO] Export configuration from infobase "%IB_PATH%" to 1C:Designer XML fo md "%XML_PATH%" IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpConfigToFiles "%XML_PATH%" -force + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpConfigToFiles "%XML_PATH%" -force + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_IB_SERVER ( %IBCMD_TOOL% infobase config export --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_IB_SERVER% --db-name="%V8_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" "%XML_PATH%" --force diff --git a/scripts/conf2ib.cmd b/scripts/conf2ib.cmd index 586877b..22d441c 100644 --- a/scripts/conf2ib.cmd +++ b/scripts/conf2ib.cmd @@ -186,12 +186,15 @@ IF not ERRORLEVEL 0 ( :export_xml IF "%V8_CONVERT_TOOL%" equ "designer" ( + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log IF "%V8_IB_CREATE%" equ "1" ( echo [INFO] Creating infobase "%IB_PATH%"... - %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) echo [INFO] Loading infobase "%IB_PATH%" configuration from XML-files "%XML_PATH%"... - %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadConfigFromFiles "%XML_PATH%" + %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadConfigFromFiles "%XML_PATH%" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_IB_SERVER ( IF "%V8_IB_CREATE%" equ "1" ( @@ -217,13 +220,15 @@ goto finally :export_cf IF "%V8_CONVERT_TOOL%" equ "designer" ( + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log IF "%V8_IB_CREATE%" equ "1" ( echo [INFO] Creating infobase "%IB_PATH%" from file "%V8_SRC_PATH%"... - %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /UseTemplate "%V8_SRC_PATH%" + %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /UseTemplate "%V8_SRC_PATH%" ) ELSE ( echo [INFO] Loading infobase "%IB_PATH%" configuration from file "%V8_SRC_PATH%"... - %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadCfg "%V8_SRC_PATH%" + %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadCfg "%V8_SRC_PATH%" ) + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_IB_SERVER ( IF "%V8_IB_CREATE%" equ "1" ( diff --git a/scripts/conf2xml.cmd b/scripts/conf2xml.cmd index 3bf3dda..a159ead 100644 --- a/scripts/conf2xml.cmd +++ b/scripts/conf2xml.cmd @@ -135,7 +135,7 @@ echo [INFO] Creating infobase "%IB_PATH%" from file "%V8_SRC_PATH%"... IF not exist "%IB_PATH%" md "%IB_PATH%" IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /UseTemplate "%V8_SRC_PATH%" + %V8_TOOL% CREATEINFOBASE %V8_IB_CONNECTION% /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /UseTemplate "%V8_SRC_PATH%" ) ELSE ( IF defined V8_IB_SERVER ( %IBCMD_TOOL% infobase create --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_IB_SERVER% --db-name="%V8_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --create-database --load="%V8_SRC_PATH%" @@ -152,7 +152,9 @@ IF not ERRORLEVEL 0 ( echo [INFO] Export configuration from infobase "%IB_PATH%" to 1C:Designer XML format "%V8_DST_PATH%"... IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpConfigToFiles "%V8_DST_PATH%" -force + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpConfigToFiles "%V8_DST_PATH%" -force + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_IB_SERVER ( %IBCMD_TOOL% infobase config export --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_IB_SERVER% --db-name="%V8_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" "%V8_DST_PATH%" --force diff --git a/scripts/dp2edt.cmd b/scripts/dp2edt.cmd index 2824e03..090f6ab 100644 --- a/scripts/dp2edt.cmd +++ b/scripts/dp2edt.cmd @@ -106,7 +106,7 @@ IF "%V8_BASE_IB%" equ "" ( md "%IB_PATH%" echo [INFO] Creating temporary file infobase "%IB_PATH%"... set V8_BASE_IB_CONNECTION=File="%IB_PATH%"; - %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" goto prepare_ib ) IF /i "%V8_BASE_IB:~0,2%" equ "/F" ( @@ -188,9 +188,12 @@ echo [INFO] Export data processors ^& reports from folder "%V8_SRC_PATH%" to 1C: md "%XML_PATH%" +set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + FOR /F "delims=" %%f IN ('dir /b /a-d %V8_SRC_MASK%') DO ( echo [INFO] Building %%~nf... - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%XML_PATH%" "%V8_SRC_FOLDER%\%%~nxf" + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpExternalDataProcessorOrReportToFiles "%XML_PATH%" "%V8_SRC_FOLDER%\%%~nxf" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i IF not ERRORLEVEL 0 ( set ERROR_CODE=%ERRORLEVEL% goto finally diff --git a/scripts/dp2epf.cmd b/scripts/dp2epf.cmd index 499768a..8070d4e 100644 --- a/scripts/dp2epf.cmd +++ b/scripts/dp2epf.cmd @@ -106,7 +106,7 @@ IF "%V8_BASE_IB%" equ "" ( md "%IB_PATH%" echo [INFO] Creating temporary file infobase "%IB_PATH%"... set V8_BASE_IB_CONNECTION=File="%IB_PATH%"; - %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" goto prepare_ib ) IF /i "%V8_BASE_IB:~0,2%" equ "/F" ( @@ -203,23 +203,28 @@ IF not ERRORLEVEL 0 ( :export_xml +set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + IF "%V8_SRC_IS_EDT%" equ "1" ( echo [INFO] Import external data processors from "%XML_PATH%" to 1C:Designer format "%V8_DST_PATH%" using infobase "%IB_PATH%"... FOR /F "delims=" %%f IN ('dir /b /a-d "%XML_PATH%\ExternalDataProcessors\*.xml"') DO ( echo [INFO] Building %%~nf... - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\ExternalDataProcessors\%%~nxf" "%V8_DST_PATH%" + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\ExternalDataProcessors\%%~nxf" "%V8_DST_PATH%" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) echo [INFO] Import external reports from "%XML_PATH%" to 1C:Designer format "%V8_DST_PATH%" using infobase "%IB_PATH%"... FOR /F "delims=" %%f IN ('dir /b /a-d "%XML_PATH%\ExternalReports\*.xml"') DO ( echo [INFO] Building %%~nf... - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\ExternalReports\%%~nxf" "%V8_DST_PATH%" + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\ExternalReports\%%~nxf" "%V8_DST_PATH%" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ) ELSE ( echo [INFO] Import external datap processors ^& reports from "%XML_PATH%" to 1C:Designer format "%V8_DST_PATH%" using infobase "%IB_PATH%"... FOR /F "delims=" %%f IN ('dir /b /a-d %V8_SRC_MASK%') DO ( echo [INFO] Building %%~nf... echo %V8_DST_PATH% - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\%%~nxf" "%V8_DST_PATH%" + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\%%~nxf" "%V8_DST_PATH%" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ) set ERROR_CODE=%ERRORLEVEL% diff --git a/scripts/dp2xml.cmd b/scripts/dp2xml.cmd index 65b0748..76cf2b7 100644 --- a/scripts/dp2xml.cmd +++ b/scripts/dp2xml.cmd @@ -105,7 +105,7 @@ IF "%V8_BASE_IB%" equ "" ( md "%IB_PATH%" echo [INFO] Creating temporary file infobase "%IB_PATH%"... set V8_BASE_IB_CONNECTION=File="%IB_PATH%"; - %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" goto prepare_ib ) IF /i "%V8_BASE_IB:~0,2%" equ "/F" ( @@ -182,9 +182,13 @@ goto finally :export_epf echo [INFO] Export data processors ^& reports from folder "%V8_SRC_PATH%" to 1C:Designer XML format "%V8_DST_PATH%" using infobase "%IB_PATH%"... + +set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + FOR /F "delims=" %%f IN ('dir /b /a-d %V8_SRC_MASK%') DO ( echo [INFO] Building %%~nf... - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%V8_DST_PATH%\%%~nf.xml" "%V8_SRC_FOLDER%\%%~nxf" + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpExternalDataProcessorOrReportToFiles "%V8_DST_PATH%\%%~nf.xml" "%V8_SRC_FOLDER%\%%~nxf" + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) set ERROR_CODE=%ERRORLEVEL% goto finally diff --git a/scripts/ext2cfe.cmd b/scripts/ext2cfe.cmd index a261f19..b1d19e9 100644 --- a/scripts/ext2cfe.cmd +++ b/scripts/ext2cfe.cmd @@ -120,7 +120,7 @@ IF "%V8_BASE_IB%" equ "" ( md "%IB_PATH%" echo [INFO] Creating temporary file infobase "%IB_PATH%"... set V8_BASE_IB_CONNECTION=File="%IB_PATH%"; - %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" goto prepare_ib ) IF /i "%V8_BASE_IB:~0,2%" equ "/F" ( @@ -211,7 +211,9 @@ IF not ERRORLEVEL 0 ( echo [INFO] Loading configuration extension from XML-files "%XML_PATH%" to infobase "%IB_PATH%"... IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadConfigFromFiles "%XML_PATH%" -Extension %V8_EXT_NAME% + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadConfigFromFiles "%XML_PATH%" -Extension %V8_EXT_NAME% + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_BASE_IB_SERVER ( %IBCMD_TOOL% infobase config import --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_BASE_IB_SERVER% --db-name="%V8_BASE_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" --extension=%V8_EXT_NAME% "%XML_PATH%" @@ -228,7 +230,9 @@ IF not ERRORLEVEL 0 ( echo [INFO] Export configuration extension from infobase "%IB_PATH%" configuration to "%V8_DST_PATH%"... IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpCfg "%V8_DST_PATH%" -Extension %V8_EXT_NAME% + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpCfg "%V8_DST_PATH%" -Extension %V8_EXT_NAME% + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_BASE_IB_SERVER ( %IBCMD_TOOL% infobase config save --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_BASE_IB_SERVER% --db-name="%V8_BASE_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" --extension=%V8_EXT_NAME% "%V8_DST_PATH%" diff --git a/scripts/ext2edt.cmd b/scripts/ext2edt.cmd index c91369a..a65de7a 100644 --- a/scripts/ext2edt.cmd +++ b/scripts/ext2edt.cmd @@ -118,7 +118,7 @@ IF "%V8_BASE_IB%" equ "" ( md "%IB_PATH%" echo [INFO] Creating temporary file infobase "%IB_PATH%"... set V8_BASE_IB_CONNECTION=File="%IB_PATH%"; - %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" goto prepare_ib ) IF /i "%V8_BASE_IB:~0,2%" equ "/F" ( @@ -185,7 +185,9 @@ goto finally echo [INFO] Loading configuration extension from file "%V8_SRC_PATH%" to infobase "%IB_PATH%"... IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadCfg "%V8_SRC_PATH%" -Extension %V8_EXT_NAME% + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadCfg "%V8_SRC_PATH%" -Extension %V8_EXT_NAME% + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_BASE_IB_SERVER ( %IBCMD_TOOL% infobase config load --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_BASE_IB_SERVER% --db-name="%V8_BASE_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" --extension=%V8_EXT_NAME% "%V8_SRC_PATH%" @@ -199,7 +201,9 @@ echo [INFO] Export configuration extension from infobase "%IB_PATH%" to 1C:Desig md %XML_PATH% IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpConfigToFiles "%XML_PATH%" -Extension %V8_EXT_NAME% -force + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpConfigToFiles "%XML_PATH%" -Extension %V8_EXT_NAME% -force + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_BASE_IB_SERVER ( %IBCMD_TOOL% infobase config export --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_BASE_IB_SERVER% --db-name="%V8_BASE_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" --extension=%V8_EXT_NAME% --force "%XML_PATH%" diff --git a/scripts/ext2xml.cmd b/scripts/ext2xml.cmd index 53ca066..e220078 100644 --- a/scripts/ext2xml.cmd +++ b/scripts/ext2xml.cmd @@ -117,7 +117,7 @@ IF "%V8_BASE_IB%" equ "" ( md "%IB_PATH%" echo [INFO] Creating temporary file infobase "%IB_PATH%"... set V8_BASE_IB_CONNECTION=File="%IB_PATH%"; - %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs + %V8_TOOL% CREATEINFOBASE !V8_BASE_IB_CONNECTION! /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" goto prepare_ib ) IF /i "%V8_BASE_IB:~0,2%" equ "/F" ( @@ -185,7 +185,9 @@ goto finally echo [INFO] Loading configuration extension from file "%V8_SRC_PATH%" to infobase "%IB_PATH%"... IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /LoadCfg "%V8_SRC_PATH%" -Extension %V8_EXT_NAME% + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /LoadCfg "%V8_SRC_PATH%" -Extension %V8_EXT_NAME% + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_BASE_IB_SERVER ( %IBCMD_TOOL% infobase config load --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_BASE_IB_SERVER% --db-name="%V8_BASE_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" --extension=%V8_EXT_NAME% "%V8_SRC_PATH%" @@ -197,7 +199,9 @@ IF "%V8_CONVERT_TOOL%" equ "designer" ( echo [INFO] Export configuration from infobase "%IB_PATH%" to 1C:Designer XML format "%V8_DST_PATH%"... IF "%V8_CONVERT_TOOL%" equ "designer" ( - %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /DumpConfigToFiles "%V8_DST_PATH%" -Extension %V8_EXT_NAME% -force + set V8_DESIGNER_LOG=%LOCAL_TEMP%\v8_designer_output.log + %V8_TOOL% DESIGNER /IBConnectionString %V8_BASE_IB_CONNECTION% /N"%V8_IB_USER%" /P"%V8_IB_PWD%" /DisableStartupDialogs /Out "!V8_DESIGNER_LOG!" /DumpConfigToFiles "%V8_DST_PATH%" -Extension %V8_EXT_NAME% -force + FOR /F "tokens=* delims=" %%i IN (!V8_DESIGNER_LOG!) DO IF "%%i" neq "" echo [WARN] %%i ) ELSE ( IF defined V8_BASE_IB_SERVER ( %IBCMD_TOOL% infobase config load --dbms=%V8_DB_SRV_DBMS% --db-server=%V8_BASE_IB_SERVER% --db-name="%V8_BASE_IB_NAME%" --db-user="%V8_DB_SRV_USR%" --db-pwd="%V8_DB_SRV_PWD%" --user="%V8_IB_USER%" --password="%V8_IB_PWD%" --extension=%V8_EXT_NAME% --force "%V8_DST_PATH%"