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

fix: Доработан скрипт выполнения проверок 1C:EDT, добавлена проверка на тип содержимого указанного для проверки каталога.

This commit is contained in:
Artem Kuznetsov 2023-07-25 14:51:15 +03:00
parent d13918da8a
commit 6f77c24a98

View File

@ -39,17 +39,6 @@ md "%V8_TEMP%"
md "%WS_PATH%"
IF not exist "%REPORT_FILE_PATH%" md "%REPORT_FILE_PATH%"
echo Prepare project for validation...
IF exist "%CONFIG_PATH%\DT-INF\" (
set VALIDATE_PATH=%CONFIG_PATH%
) ELSE (
md "%VALIDATE_PATH%"
IF exist "%CONFIG_PATH%\Configuration.xml" (
call %~dp0xml2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
) ELSE (
call %~dp0cf2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
)
)
echo Prepare project for validation...
IF exist "%CONFIG_PATH%\DT-INF\" (
@ -58,15 +47,19 @@ IF exist "%CONFIG_PATH%\DT-INF\" (
)
md "%VALIDATE_PATH%"
IF /i "%CONFIG_PATH:~-3%" equ ".cf" (
call %~dp0cf2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
call %~dp0conf2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
goto validate
)
IF exist "%CONFIG_PATH%\Configuration.xml" (
call %~dp0xml2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
call %~dp0conf2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
goto validate
)
IF exist "%CONFIG_PATH%\1cv8.1cd" (
call %~dp0ib2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
call %~dp0conf2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
goto validate
)
FOR /f %%f IN ('dir /b /a-d "%DP_SOURCE%\*.epf" "%DP_SOURCE%\*.erf" "%DP_SOURCE%\*.xml"') DO (
call %~dp0dp2edt.cmd "%CONFIG_PATH%" "%VALIDATE_PATH%"
goto validate
)