mirror of
https://github.com/arkuznetsov/1CFilesConverter.git
synced 2025-02-21 19:06:35 +02:00
Merge branch 'release/v.1.5.0'
This commit is contained in:
commit
3166d6e073
@ -9,6 +9,8 @@
|
||||
|
||||
Скрипты расположены в каталоге [scripts](./scripts)
|
||||
|
||||
Примеры и шаблоны производных (вспомогательных) скриптов расположениы в каталоге [examples](./examples), описание [README.md](./examples/README.md).
|
||||
|
||||
* [Необходимые инструменты](#tools)
|
||||
* [Переменные среды](#environment)
|
||||
* [Скрипты конвертации](#scripts)
|
||||
@ -25,14 +27,16 @@
|
||||
|
||||
## <a id="environment"></a>Переменные среды
|
||||
|
||||
* **V8_VERSION** - используемая версия платформы 1С:Предприятие (по умолчанию: `8.3.20.2290`)
|
||||
* **V8_VERSION** - используемая версия платформы 1С:Предприятие
|
||||
* **V8_EDT_VERSION** - используемая версия 1C:EDT (если не указано, то ожидается использование единственной установленной версии)
|
||||
* **V8_ENCODING** - кодировка вывода лога (по умолчанию: `65001`)
|
||||
* **V8_TEMP** - путь к каталогу для создания временных файлов в процессе конвертации (по умолчанию: `%TEMP%\1c`)
|
||||
* **V8_CONVERT_TOOL** - инструмент для конвертации файлов конфигурации/расширения (по умолчанию: `designer`):
|
||||
* **designer** - для конвертации используется пакетный режим конфигуратора
|
||||
* **ibcmd** - для конвертации используется утилита администрирования автономного сервера
|
||||
* **V8_RING_TOOL** - путь к утилите ring из состава EDT (по умолчанию берется из переменной окружения `%PATH%`)
|
||||
* **V8_TOOL** - путь к исполняемому файлу 1С:Предприятие `1Cv8.exe` (по умолчанию: `C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe`)
|
||||
* **IBCMD_TOOL** - путь к утилите управления автономным сервером `ibcmd` (по умолчанию: `C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe`)
|
||||
* **RING_TOOL** - путь к утилите ring из состава EDT (по умолчанию берется из переменной окружения `%PATH%`)
|
||||
* **IBCMD_DATA** - путь к каталогу данных автономного сервера при использовании утилиты `ibcmd` (по умолчанию `%V8_TEMP%\ibcmd_data`)
|
||||
* **V8_SKIP_ENV** - если установлена в `1`, то отключает чтение переменных среды из файла `.env`
|
||||
|
||||
|
@ -35,7 +35,7 @@ IF exist "%REPO_PATH%\.env" (
|
||||
|
||||
SET QUERY="RESTORE DATABASE [%V8_IB_NAME%] FROM DISK = N'D:\SQL.Template\%V8_IB_TEMPLATE%.bak' WITH FILE = 1, MOVE N'Temlate_ERP_2_5_12' TO N'D:\SQL.Data\%V8_IB_NAME%.mdf', MOVE N'Temlate_ERP_2_5_12_log' TO N'D:\SQL.Log\%V8_IB_NAME%_log.ldf', NOUNLOAD, REPLACE, STATS = 5"
|
||||
|
||||
SET V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
|
||||
echo START: %date% %time%
|
||||
|
||||
|
@ -71,13 +71,13 @@ set V8_CONNECTION_STRING="/S%V8_DB_SRV_ADDR%\%V8_IB_NAME%"
|
||||
IF /i "%V8_CONVERT_TOOL%" equ "designer" set V8_CONNECTION_STRING="/S%V8_SRV_ADDR%\%V8_IB_NAME%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo [ERROR] Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo [ERROR] Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
|
@ -75,13 +75,13 @@ set V8_CONNECTION_STRING="/S%V8_DB_SRV_ADDR%\%V8_IB_NAME%"
|
||||
IF /i "%V8_CONVERT_TOOL%" equ "designer" set V8_CONNECTION_STRING="/S%V8_SRV_ADDR%\%V8_IB_NAME%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo [ERROR] Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo [ERROR] Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -143,17 +143,17 @@ IF not exist "%XML_PATH%" md "%XML_PATH%"
|
||||
md "%WS_PATH%"
|
||||
|
||||
echo [INFO] Export "%V8_SRC_PATH%" to 1C:Designer XML format "%XML_PATH%"...
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
IF not ERRORLEVEL 0 (
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
goto finally
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -187,17 +187,17 @@ IF not ERRORLEVEL 0 (
|
||||
md "%WS_PATH%"
|
||||
|
||||
echo [INFO] Export configuration from "%XML_PATH%" to 1C:EDT format "%V8_DST_PATH%"...
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
|
||||
:finally
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -171,17 +171,17 @@ echo [INFO] Export "%V8_SRC_PATH%" to 1C:Designer XML format "%XML_PATH%"...
|
||||
md "%XML_PATH%"
|
||||
md "%WS_PATH%"
|
||||
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
IF not ERRORLEVEL 0 (
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
goto finally
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -179,17 +179,17 @@ echo [INFO] Export "%V8_SRC_PATH%" to 1C:Designer XML format "%V8_DST_PATH%"...
|
||||
|
||||
md "%WS_PATH%"
|
||||
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
|
||||
:finally
|
||||
|
@ -36,7 +36,7 @@ IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -212,17 +212,17 @@ FOR /F "delims=" %%f IN ('dir /b /a-d %V8_SRC_MASK%') DO (
|
||||
md "%WS_PATH%"
|
||||
|
||||
echo [INFO] Export dataprocessors ^& reports from 1C:Designer XML format "%XML_PATH%" to 1C:EDT format "%V8_DST_PATH%"...
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
|
||||
:finally
|
||||
|
@ -36,7 +36,7 @@ IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -192,17 +192,17 @@ echo [INFO] Export external data processors ^& reports from 1C:EDT format "%V8_S
|
||||
md "%XML_PATH%"
|
||||
md "%WS_PATH%"
|
||||
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
IF not ERRORLEVEL 0 (
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
goto finally
|
||||
|
@ -36,7 +36,7 @@ IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -206,17 +206,17 @@ echo [INFO] Export dataprocessors ^& reports from 1C:EDT project "%V8_SRC_PATH%"
|
||||
|
||||
md "%WS_PATH%"
|
||||
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
|
||||
IF not ERRORLEVEL 0 (
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
)
|
||||
|
@ -130,17 +130,17 @@ echo [INFO] Run validation in "%VALIDATE_PATH%"...
|
||||
|
||||
md "%WS_PATH%"
|
||||
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace validate --project-list "%VALIDATE_PATH%" --workspace-location "%WS_PATH%" --file "%REPORT_FILE%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace validate --project-list "%VALIDATE_PATH%" --workspace-location "%WS_PATH%" --file "%REPORT_FILE%"
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
|
||||
:finally
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -224,17 +224,17 @@ if "%V8_SRC_TYPE%" equ "edt" (
|
||||
:export_edt
|
||||
|
||||
echo [INFO] Export configuration extension from 1C:EDT format "%V8_SRC_PATH%" to 1C:Designer XML format "%XML_PATH%"...
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
IF not ERRORLEVEL 0 (
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
goto finally
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -262,17 +262,17 @@ echo [INFO] Export configuration extension from 1C:Designer XML format "%XML_PAT
|
||||
|
||||
md %WS_PATH%
|
||||
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
|
||||
:finally
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -172,17 +172,17 @@ goto finally
|
||||
:export_edt
|
||||
|
||||
echo [INFO] Export configuration extension from 1C:EDT format "%V8_SRC_PATH%" to 1C:Designer XML format "%XML_PATH%"...
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
IF not ERRORLEVEL 0 (
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
goto finally
|
||||
|
@ -37,13 +37,13 @@ echo [INFO] Using 1C:Enterprise, version %V8_VERSION%
|
||||
echo [INFO] Using temporary folder "%V8_TEMP%"
|
||||
|
||||
IF not "%V8_CONVERT_TOOL%" equ "designer" IF not "%V8_CONVERT_TOOL%" equ "ibcmd" set V8_CONVERT_TOOL=designer
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF not defined V8_TOOL set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "designer" IF not exist %V8_TOOL% (
|
||||
echo Could not find 1C:Designer with path %V8_TOOL%
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF not defined IBCMD_TOOL set IBCMD_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\ibcmd.exe"
|
||||
IF "%V8_CONVERT_TOOL%" equ "ibcmd" IF not exist %IBCMD_TOOL% (
|
||||
echo Could not find ibcmd tool with path %IBCMD_TOOL%
|
||||
set ERROR_CODE=1
|
||||
@ -258,17 +258,17 @@ echo [INFO] Export configuration extension from 1C:EDT format "%V8_SRC_PATH%" to
|
||||
|
||||
md "%WS_PATH%"
|
||||
|
||||
IF not defined V8_RING_TOOL (
|
||||
IF not defined RING_TOOL (
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set V8_RING_TOOL="%%i"
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
)
|
||||
IF not defined V8_RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "V8_RING_TOOL" variable with full specified path
|
||||
IF not defined RING_TOOL (
|
||||
echo [ERROR] Can't find "ring" tool. Add path to "ring.bat" to "PATH" environment variable, or set "RING_TOOL" variable with full specified path
|
||||
set ERROR_CODE=1
|
||||
goto finally
|
||||
)
|
||||
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
|
||||
call %RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
|
||||
set ERROR_CODE=%ERRORLEVEL%
|
||||
|
||||
:finally
|
||||
|
Loading…
x
Reference in New Issue
Block a user