1
0
mirror of https://github.com/arkuznetsov/1CFilesConverter.git synced 2024-11-24 08:33:30 +02:00

feat: Добавлено чтение переменных среды из файла .env в рабочем каталоге.

This commit is contained in:
Artem Kuznetsov 2023-09-06 17:04:33 +03:00
parent 7295fcbf12
commit 50825bce03
11 changed files with 88 additions and 0 deletions

View File

@ -19,6 +19,14 @@ echo Convert 1C configuration to 1C configuration file ^(*.cf^)
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C configuration to 1C:EDT project
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Load 1C configuration to 1C infobase
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C configuration to 1C:Designer XML format
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C external data processors ^& reports to 1C:EDT project
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C external data processors ^& reports to binary format ^(*.epf, *.
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C external data processors ^& reports to 1C:Designer XML format
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Validate 1C configuration, extension, external data processors ^& reports u
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C configuration extension to binary format ^(*.cfe^)
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C configuration extension to 1C:EDT project
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c

View File

@ -19,6 +19,14 @@ echo Convert 1C configuration extension to 1C:Designer XML format
set ERROR_CODE=0
IF exist "%cd%\.env" (
FOR /F "tokens=*" %%a in (%cd%\.env) DO (
FOR /F "tokens=1,2 delims==" %%b IN ("%%a") DO (
IF not defined %%b set "%%b=%%c"
)
)
)
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c