Skip to content

Instantly share code, notes, and snippets.

@Stepa86
Created July 23, 2019 06:39
Show Gist options
  • Save Stepa86/78e08331222b2e2fbc42d1c4cb147b6a to your computer and use it in GitHub Desktop.
Save Stepa86/78e08331222b2e2fbc42d1c4cb147b6a to your computer and use it in GitHub Desktop.
Проверка выгрузки из конфигуратора в EDT
@set GENERIC_ISSUE_SETTINGS_JSON=%1conf\settigs.json
@set GENERIC_ISSUE_JSON=%1acc-generic-issue.json,%1bsl-generic-json.json,%1edt-json.json
@set SRC=%1src
@call edt-export-bugs convert "%1temp\edt-result.out" "%1edt-json.json"
@set WORKSPACE=%1\temp\workspace
@set SRC=%1\src
@set PROJECT_PATH=%1\temp\edt-project
@set EDT_VALIDATION_RESULT=%1\temp\edt-result.out
@set RING_OPTS=-Dfile.encoding=UTF-8 -Dosgi.nl=ru
@rd /S /Q "%WORKSPACE%"
@md "%WORKSPACE%"
@rd /S /Q "%PROJECT_PATH%"
@DEL "%EDT_VALIDATION_RESULT%"
@echo [%date% %time%]: Создание проекта в EDT
@call ring edt@%EDT_VERSION% workspace import --workspace-location "%WORKSPACE%" --configuration-files "%SRC%" --project "%PROJECT_PATH%" --version %EDT_PROJECT_VERSION%
@echo [%date% %time%]: Проект в EDT создан
@ECHO Error level: %ERRORLEVEL%
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
@echo [%date% %time%]: Проверка проекта в EDT
@call ring edt@%EDT_VERSION% workspace validate --workspace-location "%WORKSPACE%" --file "%EDT_VALIDATION_RESULT%" --project-list "%PROJECT_PATH%"
@echo [%date% %time%]: Проверка в EDT завершена
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment