mirror of
https://github.com/arkuznetsov/1CFilesConverter.git
synced 2024-11-24 08:33:30 +02:00
fix: Добавлена проверка существования каталогов перед удалением
This commit is contained in:
parent
a6218f6ea5
commit
d8cef1be9a
@ -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...
|
||||
rd /S /Q "%IB_PATH%"
|
||||
rd /S /Q "%XML_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
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%"
|
||||
)
|
||||
|
@ -56,4 +56,6 @@ if "%CONV_TOOL%" equ "designer" (
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
rd /S /Q "%IB_PATH%"
|
||||
if exist "%IB_PATH%" (
|
||||
rd /S /Q "%IB_PATH%"
|
||||
)
|
||||
|
@ -106,5 +106,9 @@ echo Clear temporary files...
|
||||
IF "%CLEAN_AFTER_EXPORT%" equ "1" (
|
||||
rd /S /Q "%IB_PATH%"
|
||||
)
|
||||
rd /S /Q "%XML_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
if exist "%XML_PATH%" (
|
||||
rd /S /Q "%XML_PATH%"
|
||||
)
|
||||
if exist "%WS_PATH%" (
|
||||
rd /S /Q "%WS_PATH%"
|
||||
)
|
||||
|
@ -93,5 +93,9 @@ echo Clear temporary files...
|
||||
IF "%CLEAN_AFTER_EXPORT%" equ "1" (
|
||||
rd /S /Q "%IB_PATH%"
|
||||
)
|
||||
rd /S /Q "%XML_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
if exist "%XML_PATH%" (
|
||||
rd /S /Q "%XML_PATH%"
|
||||
)
|
||||
if exist "%WS_PATH%" (
|
||||
rd /S /Q "%WS_PATH%"
|
||||
)
|
||||
|
@ -78,6 +78,12 @@ if "%CONV_TOOL%" equ "designer" (
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
rd /S /Q "%IB_PATH%"
|
||||
rd /S /Q "%XML_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
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%"
|
||||
)
|
||||
|
@ -68,5 +68,9 @@ if "%CONV_TOOL%" equ "designer" (
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
rd /S /Q "%XML_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
if exist "%XML_PATH%" (
|
||||
rd /S /Q "%XML_PATH%"
|
||||
)
|
||||
if exist "%WS_PATH%" (
|
||||
rd /S /Q "%WS_PATH%"
|
||||
)
|
||||
|
@ -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...
|
||||
rd /S /Q "%IB_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
if exist "%IB_PATH%" (
|
||||
rd /S /Q "%IB_PATH%"
|
||||
)
|
||||
if exist "%WS_PATH%" (
|
||||
rd /S /Q "%WS_PATH%"
|
||||
)
|
||||
|
@ -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...
|
||||
rd /S /Q "%XML_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
if exist "%XML_PATH%" (
|
||||
rd /S /Q "%XML_PATH%"
|
||||
)
|
||||
if exist "%WS_PATH%" (
|
||||
rd /S /Q "%WS_PATH%"
|
||||
)
|
||||
|
@ -60,4 +60,6 @@ if "%CONV_TOOL%" equ "designer" (
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
rd /S /Q "%IB_PATH%"
|
||||
if exist "%IB_PATH%" (
|
||||
rd /S /Q "%IB_PATH%"
|
||||
)
|
||||
|
@ -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...
|
||||
rd /S /Q "%IB_PATH%"
|
||||
rd /S /Q "%WS_PATH%"
|
||||
if exist "%IB_PATH%" (
|
||||
rd /S /Q "%IB_PATH%"
|
||||
)
|
||||
if exist "%WS_PATH%" (
|
||||
rd /S /Q "%WS_PATH%"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user