Skip to content

Commit

Permalink
Merge branch 'release/v.1.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
arkuznetsov committed Sep 14, 2023
2 parents 125e850 + 5860ebe commit 114ccf3
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 15 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

## <a id="environment"></a>Переменные среды

* **V8_VERSION** - версия используемой платформы 1С:Предприятие (по умолчанию: `8.3.20.2290`)
* **V8_VERSION** - используемая версия платформы 1С:Предприятие (по умолчанию: `8.3.20.2290`)
* **V8_EDT_VERSION** - используемая версия 1C:EDT (если не указано, то ожидается использование единственной установленной версии)
* **V8_TEMP** - путь к каталогу для создания временных файлов в процессе конвертации (по умолчанию: `%TEMP%\1c`)
* **V8_CONVERT_TOOL** - инструмент для конвертации файлов конфигурации (по умолчанию: `designer`):
* **designer** - для конвертации используется пакетный режим конфигуратора
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1
5 changes: 4 additions & 1 deletion scripts/conf2cf.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "%V8_CONVERT_TOOL%"

Expand Down Expand Up @@ -142,7 +145,7 @@ IF not exist "%XML_PATH%" md "%XML_PATH%"
md "%WS_PATH%"

echo [INFO] Export "%V8_SRC_PATH%" to 1C:Designer XML format "%XML_PATH%"...
call %V8_RING_TOOL% edt workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"

:export_xml

Expand Down
5 changes: 4 additions & 1 deletion scripts/conf2edt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "%V8_CONVERT_TOOL%"

Expand Down Expand Up @@ -170,7 +173,7 @@ IF "%V8_CONVERT_TOOL%" equ "designer" (
md "%WS_PATH%"

echo [INFO] Export configuration from "%XML_PATH%" to 1C:EDT format "%V8_DST_PATH%"...
call %V8_RING_TOOL% edt workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
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%"

echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
5 changes: 4 additions & 1 deletion scripts/conf2ib.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "%V8_CONVERT_TOOL%"

Expand Down Expand Up @@ -168,7 +171,7 @@ echo [INFO] Export "%V8_SRC_PATH%" to 1C:Designer XML format "%XML_PATH%"...
md "%XML_PATH%"
md "%WS_PATH%"

call %V8_RING_TOOL% edt workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"

:export_xml

Expand Down
5 changes: 4 additions & 1 deletion scripts/conf2xml.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "%V8_CONVERT_TOOL%"

Expand Down Expand Up @@ -168,7 +171,7 @@ echo [INFO] Export "%V8_SRC_PATH%" to 1C:Designer XML format "%V8_DST_PATH%"...

md "%WS_PATH%"

call %V8_RING_TOOL% edt workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"

:end

Expand Down
5 changes: 4 additions & 1 deletion scripts/dp2edt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "designer"

Expand Down Expand Up @@ -201,7 +204,7 @@ 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%"...
call %V8_RING_TOOL% edt workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
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%"

echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
5 changes: 4 additions & 1 deletion scripts/dp2epf.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "designer"

Expand Down Expand Up @@ -187,7 +190,7 @@ echo [INFO] Export external data processors ^& reports from 1C:EDT format "%V8_S
md "%XML_PATH%"
md "%WS_PATH%"

call %V8_RING_TOOL% edt workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"

:export_xml

Expand Down
5 changes: 4 additions & 1 deletion scripts/dp2xml.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "designer"

Expand Down Expand Up @@ -197,7 +200,7 @@ echo [INFO] Export dataprocessors ^& reports from 1C:EDT project "%V8_SRC_PATH%"

md "%WS_PATH%"

call %V8_RING_TOOL% edt workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"

:end

Expand Down
7 changes: 5 additions & 2 deletions scripts/edt-validate.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@ECHO OFF

SETLOCAL
SETLOCAL ENABLEDELAYEDEXPANSION

set CONVERT_VERSION=UNKNOWN
IF exist "%~dp0..\VERSION" FOR /F "usebackq tokens=* delims=" %%i IN ("%~dp0..\VERSION") DO set CONVERT_VERSION=%%i
Expand Down Expand Up @@ -42,6 +42,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

set LOCAL_TEMP=%V8_TEMP%\%~n0
IF "%VALIDATE_PATH%" equ "" (
Expand Down Expand Up @@ -132,7 +135,7 @@ echo [INFO] Run validation in "%VALIDATE_PATH%"...

md "%WS_PATH%"

call %V8_RING_TOOL% edt workspace validate --project-list "%VALIDATE_PATH%" --workspace-location "%WS_PATH%" --file "%REPORT_FILE%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace validate --project-list "%VALIDATE_PATH%" --workspace-location "%WS_PATH%" --file "%REPORT_FILE%"

echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
5 changes: 4 additions & 1 deletion scripts/ext2cfe.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "%V8_CONVERT_TOOL%"

Expand Down Expand Up @@ -192,7 +195,7 @@ exit /b 1
:export_edt

echo [INFO] Export configuration extension from 1C:EDT format "%V8_SRC_PATH%" to 1C:Designer XML format "%XML_PATH%"...
call %V8_RING_TOOL% edt workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"

:export_xml

Expand Down
5 changes: 4 additions & 1 deletion scripts/ext2edt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "%V8_CONVERT_TOOL%"

Expand Down Expand Up @@ -216,7 +219,7 @@ echo [INFO] Export configuration extension from 1C:Designer XML format "%XML_PAT

md %WS_PATH%

call %V8_RING_TOOL% edt workspace import --project "%V8_DST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
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%"

echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
5 changes: 4 additions & 1 deletion scripts/ext2xml.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ 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
set ERROR_CODE=1
)
IF defined V8_EDT_VERSION (
set V8_EDT_VERSION=@%V8_EDT_VERSION:@=%
)

echo [INFO] Start conversion using "%V8_CONVERT_TOOL%"

Expand Down Expand Up @@ -215,7 +218,7 @@ echo [INFO] Export configuration extension from 1C:EDT format "%V8_SRC_PATH%" to

md "%WS_PATH%"

call %V8_RING_TOOL% edt workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"
call %V8_RING_TOOL% edt%V8_EDT_VERSION% workspace export --project "%V8_SRC_PATH%" --configuration-files "%V8_DST_PATH%" --workspace-location "%WS_PATH%"

:end

Expand Down
3 changes: 2 additions & 1 deletion tests/example.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
V8_VERSION=8.3.20.2184
V8_VERSION=8.3.20.2290
V8_EDT_VERSION=2023.1.4
V8_DB_SRV_DBMS=MSSQLServer
V8_DB_SRV_ADDR=localhost
V8_DB_SRV_USR=_1CSrvUsr1
Expand Down

0 comments on commit 114ccf3

Please sign in to comment.