-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.cmd
More file actions
42 lines (31 loc) · 1.43 KB
/
build.cmd
File metadata and controls
42 lines (31 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
set v8version=8.3.18.1741
set v8path="C:\Program Files\1cv8\%v8version%\bin\1cv8"
set edtprojectpath=%cd%\dp
set modulesprojectpath=%cd%\modules\SerLib1C\dp
set tmpdir=%cd%\tmp
set buildpath=%edtprojectpath%\bin
md "%tmpdir%"
md "%tmpdir%\ws"
md "%tmpdir%\main"
md "%tmpdir%\modules"
echo Starting export to 1C:Designer XML format...
call ring edt workspace export --project "%edtprojectpath%" --configuration-files "%tmpdir%\main" --workspace-location "%tmpdir%\ws"
rmdir /S /Q "%tmpdir%\ws"
md "%tmpdir%\ws"
call ring edt workspace export --project "%modulesprojectpath%" --configuration-files "%tmpdir%\modules" --workspace-location "%tmpdir%\ws"
echo Starting build external data processors ^& reports...
FOR /f %%f IN ('dir /b /a-d "%tmpdir%\main\ExternalDataProcessors\*.xml"') DO (
FOR %%i IN (%%~nf) DO (
echo Building %%~ni...
%v8path% DESIGNER /LoadExternalDataProcessorOrReportFromFiles "%tmpdir%\main\ExternalDataProcessors\%%~ni.xml" "%buildpath%" /DisableStartupDialogs
)
)
FOR /f %%f IN ('dir /b /a-d "%tmpdir%\modules\ExternalDataProcessors\*.xml"') DO (
FOR %%i IN (%%~nf) DO (
echo Building %%~ni...
%v8path% DESIGNER /LoadExternalDataProcessorOrReportFromFiles "%tmpdir%\modules\ExternalDataProcessors\%%~ni.xml" "%buildpath%" /DisableStartupDialogs
)
)
rmdir /S /Q "%tmpdir%"
echo Finish building external data processors ^& reports.