Skip to content

Instantly share code, notes, and snippets.

@artbear
Created August 29, 2019 14:26
Show Gist options
  • Save artbear/c0f159fb1d2b1835d143175ff62052ae to your computer and use it in GitHub Desktop.
Save artbear/c0f159fb1d2b1835d143175ff62052ae to your computer and use it in GitHub Desktop.
Builds 1C external data processors & reports within EDT project
@echo off
set v8version=8.3.14.1779
set v8path="C:\Program Files\1cv8\%v8version%\bin\1cv8"
set edtprojectpath=%cd%\dp
set tmpdir=%cd%\tmp
set buildpath=%edtprojectpath%\bin
md "%tmpdir%"
md "%tmpdir%\ws"
md "%tmpdir%\result"
echo Starting export to 1C:Designer XML format...
call ring edt workspace export --project "%edtprojectpath%" --configuration-files "%tmpdir%\result" --workspace-location "%tmpdir%\ws"
echo Starting build external data processors ^& reports...
FOR /f %%f IN ('dir /b /a-d "%tmpdir%\result\ExternalDataProcessors\*.xml"') DO (
FOR %%i IN (%%~nf) DO (
echo Building %%~ni...
%v8path% DESIGNER /LoadExternalDataProcessorOrReportFromFiles "%tmpdir%\result\ExternalDataProcessors\%%~ni.xml" "%buildpath%"
)
)
rm -fr "%tmpdir%"
echo Finish building external data processors ^& reports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment