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

fix: Добавлена проверка существования каталогов перед удалением

This commit is contained in:
Artem Kuznetsov 2023-07-22 10:46:41 +03:00
parent a6218f6ea5
commit d8cef1be9a
10 changed files with 60 additions and 20 deletions

View File

@ -71,6 +71,12 @@ echo Export configuration from "%XML_PATH%" to 1C:EDT format "%CONFIG_PATH%"...
call %RING_TOOL% edt workspace import --project "%CONFIG_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
echo Clear temporary files...
if exist "%IB_PATH%" (
rd /S /Q "%IB_PATH%"
)
if exist "%XML_PATH%" (
rd /S /Q "%XML_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)

View File

@ -56,4 +56,6 @@ if "%CONV_TOOL%" equ "designer" (
)
echo Clear temporary files...
if exist "%IB_PATH%" (
rd /S /Q "%IB_PATH%"
)

View File

@ -106,5 +106,9 @@ echo Clear temporary files...
IF "%CLEAN_AFTER_EXPORT%" equ "1" (
rd /S /Q "%IB_PATH%"
)
if exist "%XML_PATH%" (
rd /S /Q "%XML_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)

View File

@ -93,5 +93,9 @@ echo Clear temporary files...
IF "%CLEAN_AFTER_EXPORT%" equ "1" (
rd /S /Q "%IB_PATH%"
)
if exist "%XML_PATH%" (
rd /S /Q "%XML_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)

View File

@ -78,6 +78,12 @@ if "%CONV_TOOL%" equ "designer" (
)
echo Clear temporary files...
if exist "%IB_PATH%" (
rd /S /Q "%IB_PATH%"
)
if exist "%XML_PATH%" (
rd /S /Q "%XML_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)

View File

@ -68,5 +68,9 @@ if "%CONV_TOOL%" equ "designer" (
)
echo Clear temporary files...
if exist "%XML_PATH%" (
rd /S /Q "%XML_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)

View File

@ -43,5 +43,9 @@ echo Export "%EDT_PATH%" to 1C:Designer XML format "%CONFIG_PATH%"...
call %RING_TOOL% edt workspace export --project "%EDT_PATH%" --configuration-files "%CONFIG_PATH%" --workspace-location "%WS_PATH%"
echo Clear temporary files...
if exist "%IB_PATH%" (
rd /S /Q "%IB_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)

View File

@ -60,5 +60,9 @@ echo Export configuration from "%XML_PATH%" to 1C:EDT format "%CONFIG_PATH%"...
call %RING_TOOL% edt workspace import --project "%CONFIG_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
echo Clear temporary files...
if exist "%XML_PATH%" (
rd /S /Q "%XML_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)

View File

@ -60,4 +60,6 @@ if "%CONV_TOOL%" equ "designer" (
)
echo Clear temporary files...
if exist "%IB_PATH%" (
rd /S /Q "%IB_PATH%"
)

View File

@ -40,5 +40,9 @@ echo Export "%CONFIG_PATH%" to 1C:EDT format "%EDT_PATH%"...
call %RING_TOOL% edt workspace import --project "%EDT_PATH%" --configuration-files "%CONFIG_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
echo Clear temporary files...
if exist "%IB_PATH%" (
rd /S /Q "%IB_PATH%"
)
if exist "%WS_PATH%" (
rd /S /Q "%WS_PATH%"
)