mirror of
https://github.com/arkuznetsov/1CFilesConverter.git
synced 2024-11-24 08:33:30 +02:00
refactor: Переработаны скрипты конвертации внешних отчетов и обработок, сокращено количество скриптов, оставшиеся сделаны универсальными по входящим данным.
tests: Поправлены тесты.
This commit is contained in:
parent
62085f8113
commit
d13918da8a
@ -1,105 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) all 1C data processors & reports (*.epf, *.erf) in folder to 1C:EDT format
|
||||
rem %1 - path to folder contains data processors & reports in binary format (*.epf, *.erf)
|
||||
rem %2 - path to folder to save 1C data processors & reports in 1C:EDT format
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
set XML_PATH=%V8_TEMP%\tmp_xml
|
||||
set WS_PATH=%V8_TEMP%\edt_ws
|
||||
|
||||
set DP_BIN_PATH=%1
|
||||
IF defined DP_BIN_PATH set DP_BIN_PATH=%DP_BIN_PATH:"=%
|
||||
set DP_SRC_PATH=%2
|
||||
IF defined DP_SRC_PATH set DP_SRC_PATH=%DP_SRC_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_BIN_PATH (
|
||||
echo Missed parameter 1 "path to folder contains data processors & reports in binary format (*.epf, *.erf)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_SRC_PATH (
|
||||
echo Missed parameter 2 "path to folder to save 1C data processors & reports in 1C:EDT format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
md "%XML_PATH%"
|
||||
md "%WS_PATH%"
|
||||
IF exist "%DP_SRC_PATH%" rd /S /Q "%DP_SRC_PATH%"
|
||||
md %DP_SRC_PATH%
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Export dataprocessors from folder "%DP_BIN_PATH%" to 1C:Designer XML format "%XML_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_BIN_PATH%\*.epf"') DO (
|
||||
FOR %%i IN (%%~nf) DO (
|
||||
echo Building %%~ni...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%XML_PATH%" "%DP_BIN_PATH%\%%~ni.epf"
|
||||
)
|
||||
)
|
||||
echo Export reports from folder "%DP_BIN_PATH%" to 1C:Designer XML format "%XML_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_BIN_PATH%\*.erf"') DO (
|
||||
FOR %%i IN (%%~nf) DO (
|
||||
echo Building %%~ni...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%XML_PATH%" "%DP_BIN_PATH%\%%~ni.erf"
|
||||
)
|
||||
)
|
||||
|
||||
echo Export dataprocessors ^& reports from 1C:Designer XML format "%XML_PATH%" to 1C:EDT format "%DP_SRC_PATH%"...
|
||||
call %RING_TOOL% edt workspace import --project "%DP_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
@ -1,94 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) all 1C data processors & reports (*.epf, *.erf) in folder to 1C:Designer XML format
|
||||
rem %1 - path to folder contains data processors & reports in binary format (*.epf, *.erf)
|
||||
rem %2 - path to folder to save 1C data processors & reports in 1C:Designer XML format
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
|
||||
set DP_BIN_PATH=%1
|
||||
IF defined DP_BIN_PATH set DP_BIN_PATH=%DP_BIN_PATH:"=%
|
||||
set DP_SRC_PATH=%2
|
||||
IF defined DP_SRC_PATH set DP_SRC_PATH=%DP_SRC_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_BIN_PATH (
|
||||
echo Missed parameter 1 "path to folder contains data processors & reports in binary format (*.epf, *.erf)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_SRC_PATH (
|
||||
echo Missed parameter 2 "path to folder to save 1C data processors & reports in 1C:Designer XML format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
IF not exist "%DP_SRC_PATH%" md "%DP_SRC_PATH%"
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Export dataprocessors from folder "%DP_BIN_PATH%" to 1C:Designer XML format "%DP_SRC_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_BIN_PATH%\*.epf"') DO (
|
||||
FOR %%i IN (%%~nf) DO (
|
||||
echo Building %%~ni...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%DP_SRC_PATH%" "%DP_BIN_PATH%\%%~ni.epf"
|
||||
)
|
||||
)
|
||||
echo Export reports from folder "%DP_BIN_PATH%" to 1C:Designer XML format "%DP_SRC_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_BIN_PATH%\*.erf"') DO (
|
||||
FOR %%i IN (%%~nf) DO (
|
||||
echo Building %%~ni...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%DP_SRC_PATH%" "%DP_BIN_PATH%\%%~ni.erf"
|
||||
)
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
@ -1,93 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) 1C data processor or report from binary format (*.epf, *.erf) to 1C:EDT format
|
||||
rem %1 - path to 1C data processor or report (*.epf, *.erf)
|
||||
rem %2 - path to folder to save data processor & report in 1C:EDT format
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
set XML_PATH=%V8_TEMP%\tmp_xml
|
||||
set WS_PATH=%V8_TEMP%\edt_ws
|
||||
|
||||
set DP_FILE=%1
|
||||
IF defined DP_FILE set DP_FILE=%DP_FILE:"=%
|
||||
set DP_PATH=%2
|
||||
IF defined DP_PATH set DP_PATH=%DP_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_FILE (
|
||||
echo Missed parameter 1 "path to 1C data processor or report (*.epf, *.erf)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_PATH (
|
||||
echo Missed parameter 2 "path to folder to save data processor & report in 1C:EDT format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
md "%XML_PATH%"
|
||||
md "%WS_PATH%"
|
||||
IF exist "%DP_PATH%" rd /S /Q "%DP_PATH%"
|
||||
md "%DP_PATH%"
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Export dataprocessor / report "%DP_FILE%" to 1C:Designer XML format "%XML_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%XML_PATH%" "%DP_FILE%"
|
||||
|
||||
echo Export dataprocessor / report from 1C:Designer XML format "%XML_PATH%" to 1C:EDT format "%DP_PATH%"...
|
||||
call %RING_TOOL% edt workspace import --project "%DP_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
@ -1,83 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) 1C data processor or report from binary format (*.epf, *.erf) to 1C:Designer XML format
|
||||
rem %1 - path to 1C data processor or report (*.epf, *.erf)
|
||||
rem %2 - path to folder to save data processor & report in 1C:Designer XML format
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
|
||||
set DP_FILE=%1
|
||||
IF defined DP_FILE set DP_FILE=%DP_FILE:"=%
|
||||
set DP_PATH=%2
|
||||
IF defined DP_PATH set DP_PATH=%DP_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_FILE (
|
||||
echo Missed parameter 1 "path to 1C data processor or report (*.epf, *.erf)".
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_PATH (
|
||||
echo Missed parameter 2 "path to folder to save data processor & report in 1C:Designer XML format".
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
IF not exist "%DP_PATH%" md "%DP_PATH%"
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Export dataprocessor / report "%DP_FILE%" to 1C:Designer XML format "%DP_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%DP_PATH%" "%DP_FILE%"
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
@ -1,87 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (load) all 1C data processors & reports in folder from 1C:Designer XML format to binary format (*.epf, *.erf)
|
||||
rem %1 - path to folder contains 1C data processors & reports in 1C:Designer XML format
|
||||
rem %2 - path to folder to save data processors & reports in binary format (*.epf, *.erf)
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
|
||||
set DP_SRC_PATH=%1
|
||||
IF defined DP_SRC_PATH set DP_SRC_PATH=%DP_SRC_PATH:"=%
|
||||
set DP_BIN_PATH=%2
|
||||
IF defined DP_BIN_PATH set DP_BIN_PATH=%DP_BIN_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_SRC_PATH (
|
||||
echo Missed parameter 1 "path to folder contains 1C data processors & reports in 1C:Designer XML format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_BIN_PATH (
|
||||
echo Missed parameter 2 "path to folder to save data processors & reports in binary format (*.epf, *.erf)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
IF not exist "%DP_BIN_PATH%" md "%DP_BIN_PATH%"
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Import dataprocessors ^& reports from folder "%DP_SRC_PATH%" to 1C:Designer format "%DP_BIN_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_SRC_PATH%\*.xml"') DO (
|
||||
FOR %%i IN (%%~nf) DO (
|
||||
echo Building %%~ni...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /LoadExternalDataProcessorOrReportFromFiles "%DP_SRC_PATH%\%%~ni.xml" "%DP_BIN_PATH%"
|
||||
)
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
@ -1,82 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (load) 1C data processor or report from 1C:Designer XML format to binary format (*.epf, *.erf)
|
||||
rem %1 - path to main file of 1C data processor or report in 1C:Designer XML format (*.xml)
|
||||
rem %2 - path to folder to save data processor & report in binary format
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
|
||||
set DP_FILE=%1
|
||||
IF defined DP_FILE set DP_FILE=%DP_FILE:"=%
|
||||
set DP_PATH=%2
|
||||
IF defined DP_PATH set DP_PATH=%DP_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_FILE (
|
||||
echo Missed parameter 1 "path to main file of 1C data processor or report in 1C:Designer XML format (*.xml)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_PATH (
|
||||
echo Missed parameter 2 "path to folder to save data processor & report in binary format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
IF not exist "%DP_PATH%" md "%DP_PATH%"
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Import dataprocessor / report "%DP_FILE%" to 1C:Designer format "%DP_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /LoadExternalDataProcessorOrReportFromFiles "%DP_FILE%" "%DP_PATH%"
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
143
scripts/dp2edt.cmd
Normal file
143
scripts/dp2edt.cmd
Normal file
@ -0,0 +1,143 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) all 1C data processors & reports (*.epf, *.erf) in folder to 1C:EDT format
|
||||
rem %1 - path to folder containing data processors (*.epf) & reports (*.erf) in binary or XML format
|
||||
rem or path to binary data processor (*.epf) or report (*.erf)
|
||||
rem %2 - path to folder to save 1C data processors & reports in 1C:EDT format
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
set XML_PATH=%V8_TEMP%\tmp_xml
|
||||
set WS_PATH=%V8_TEMP%\edt_ws
|
||||
|
||||
set DP_SOURCE=%1
|
||||
IF defined DP_SOURCE set DP_SOURCE=%DP_SOURCE:"=%
|
||||
set DP_SOURCE_PATH=%~dp1
|
||||
set DP_DEST_PATH=%2
|
||||
IF defined DP_DEST_PATH set DP_DEST_PATH=%DP_DEST_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_SOURCE (
|
||||
echo Missed parameter 1 "path to folder containing data processors (*.epf) & reports (*.erf) in binary or XML format or path to binary data processor (*.epf) or report (*.erf)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%DP_SOURCE%" (
|
||||
echo Path "%DP_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_DEST_PATH (
|
||||
echo Missed parameter 2 "path to folder to save 1C data processors & reports in 1C:EDT format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
md "%XML_PATH%"
|
||||
md "%WS_PATH%"
|
||||
IF exist "%DP_DEST_PATH%" rd /S /Q "%DP_DEST_PATH%"
|
||||
md %DP_DEST_PATH%
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
echo Basic config source type: Configuration file ^(CF^)
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
echo Basic config source type: 1C:EDT project
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%" designer
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
echo Basic config source type: 1C:Designer XML files
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%" designer
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
echo Basic config source type: Infobase
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Checking data processord ^& reports source type...
|
||||
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_SOURCE%\*.epf" "%DP_SOURCE%\*.erf"') DO (
|
||||
echo Source type: External data processors ^(epf^) ^& reports ^(erf^) binary files
|
||||
set DP_SOURCE_PATH=%DP_SOURCE%
|
||||
set DP_SOURCE_MASK="%DP_SOURCE%\*.epf" "%DP_SOURCE%\*.erf"
|
||||
goto export_epf
|
||||
)
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_SOURCE%\*.xml"') DO (
|
||||
echo Source type: 1C:Designer XML files folder ^(external data processors ^& reports^)
|
||||
set XML_PATH=%DP_SOURCE%
|
||||
set DP_SOURCE_MASK="%DP_SOURCE%\*.xml"
|
||||
goto export_xml
|
||||
)
|
||||
set DP_SOURCE_MASK="%DP_SOURCE%"
|
||||
IF /i "%DP_SOURCE:~-4%" equ ".xml" (
|
||||
echo Source type: 1C:Designer XML files ^(external data processor or report^)
|
||||
set XML_PATH=%DP_SOURCE_PATH%
|
||||
goto export_xml
|
||||
)
|
||||
IF /i "%DP_SOURCE:~-4%" equ ".epf" (
|
||||
echo Source type: External data processor binary file ^(epf^)
|
||||
goto export_epf
|
||||
)
|
||||
IF /i "%DP_SOURCE:~-4%" equ ".erf" (
|
||||
echo Source type: External report binary file ^(erf^)
|
||||
goto export_epf
|
||||
)
|
||||
|
||||
echo Wrong path "%DP_SOURCE%"!
|
||||
echo Folder containing external data processors ^& reports in binary or XML format, data processor binary ^(*.epf^) or report binary ^(*.erf^) expected.
|
||||
exit /b 1
|
||||
|
||||
:export_epf
|
||||
|
||||
echo Export data processors ^& reports from folder "%DP_SOURCE%" to 1C:Designer XML format "%XML_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d %DP_SOURCE_MASK%') DO (
|
||||
echo Building %%~ni...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%XML_PATH%" "%DP_SOURCE_PATH%\%%~nxf"
|
||||
)
|
||||
|
||||
:export_xml
|
||||
|
||||
echo Export dataprocessors ^& reports from 1C:Designer XML format "%XML_PATH%" to 1C:EDT format "%DP_DEST_PATH%"...
|
||||
call %RING_TOOL% edt workspace import --project "%DP_DEST_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
143
scripts/dp2epf.cmd
Normal file
143
scripts/dp2epf.cmd
Normal file
@ -0,0 +1,143 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (load) all 1C data processors & reports in folder from 1C:Designer XML format to binary format (*.epf, *.erf)
|
||||
rem %1 - path to folder contains 1C data processors & reports in 1C:Designer XML format
|
||||
rem %1 - path to folder contains 1C data processors & reports in 1C:Designer XML format or EDT format
|
||||
rem or path to main xml-file of data processor or report
|
||||
rem %2 - path to folder to save data processors & reports in binary format (*.epf, *.erf)
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
set XML_PATH=%V8_TEMP%\tmp_xml
|
||||
set WS_PATH=%V8_TEMP%\edt_ws
|
||||
|
||||
set DP_SOURCE=%1
|
||||
IF defined DP_SOURCE set DP_SOURCE=%DP_SOURCE:"=%
|
||||
set DP_SOURCE_PATH=%~dp1
|
||||
set DP_DEST_PATH=%2
|
||||
IF defined DP_DEST_PATH set DP_DEST_PATH=%DP_DEST_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_SOURCE (
|
||||
echo Missed parameter 1 "path to folder contains 1C data processors & reports in 1C:Designer XML or 1C:EDT project format or path to main xml-file of data processor or report"
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_DEST_PATH (
|
||||
echo Missed parameter 2 "path to folder to save data processors & reports in binary format (*.epf, *.erf)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
IF not exist "%DP_DEST_PATH%" md "%DP_DEST_PATH%"
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
echo Basic config source type: Configuration file ^(CF^)
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
echo Basic config source type: 1C:EDT project
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%" designer
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
echo Basic config source type: 1C:Designer XML files
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%" designer
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
echo Basic config source type: Infobase
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Checking data processord ^& reports source type...
|
||||
|
||||
set DP_SOURCE_IS_EDT=0
|
||||
|
||||
IF exist "%DP_SOURCE%\DT-INF\" (
|
||||
IF exist "%DP_SOURCE%\src\ExternalDataProcessors\" set DP_SOURCE_IS_EDT=1
|
||||
IF exist "%DP_SOURCE%\src\ExternalReports\" set DP_SOURCE_IS_EDT=1
|
||||
)
|
||||
IF "%DP_SOURCE_IS_EDT%" equ "1" (
|
||||
echo Source type: 1C:EDT project
|
||||
echo Export "%EDT_PATH%" to 1C:Designer XML format "%DP_DEST_PATH%"...
|
||||
md "%WS_PATH%"
|
||||
md "%XML_PATH%"
|
||||
goto export_edt
|
||||
)
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_SOURCE%\*.xml"') DO (
|
||||
echo Source type: 1C:Designer XML files folder ^(external data processors ^& reports^)
|
||||
set XML_PATH=%DP_SOURCE%
|
||||
goto export_xml
|
||||
)
|
||||
IF /i "%DP_SOURCE:~-4%" equ ".xml" (
|
||||
echo Source type: 1C:Designer XML files ^(external data processor or report^)
|
||||
set XML_PATH=%DP_SOURCE_PATH%
|
||||
goto export_xml
|
||||
)
|
||||
|
||||
echo Wrong path "%DP_SOURCE%"!
|
||||
echo Folder containing external data processors ^& reports in XML or 1C:EDT project format or path to main xml-file of data processor or report expected.
|
||||
exit /b 1
|
||||
|
||||
:export_edt
|
||||
|
||||
echo Export external data processors ^& reports from 1C:EDT format "%DP_SOURCE%" to 1C:Designer XML format "%XML_PATH%"...
|
||||
call %RING_TOOL% edt workspace export --project "%DP_SOURCE%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%"
|
||||
|
||||
:export_xml
|
||||
|
||||
IF "%DP_SOURCE_IS_EDT%" equ "1" (
|
||||
echo Import external data processors from "%XML_PATH%" to 1C:Designer format "%DP_DEST_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%XML_PATH%\ExternalDataProcessors\*.xml"') DO (
|
||||
echo Building %%~nf...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\ExternalDataProcessors\%%~nxf" "%DP_DEST_PATH%"
|
||||
)
|
||||
echo Import external reports from "%XML_PATH%" to 1C:Designer format "%DP_DEST_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%XML_PATH%\ExternalReports\*.xml"') DO (
|
||||
echo Building %%~nf...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\ExternalReports\%%~nxf" "%DP_DEST_PATH%"
|
||||
)
|
||||
) ELSE (
|
||||
echo Import external datap processors ^& reports from "%XML_PATH%" to 1C:Designer format "%DP_DEST_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d "%XML_PATH%\*.xml"') DO (
|
||||
echo Building %%~nf...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /LoadExternalDataProcessorOrReportFromFiles "%XML_PATH%\%%~nxf" "%DP_DEST_PATH%"
|
||||
)
|
||||
)
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
133
scripts/dp2xml.cmd
Normal file
133
scripts/dp2xml.cmd
Normal file
@ -0,0 +1,133 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) all 1C data processors & reports (*.epf, *.erf) in folder to 1C:Designer XML format
|
||||
rem %1 - path to folder containing data processors (*.epf) & reports (*.erf) in binary or EDT format
|
||||
rem or path to binary data processor (*.epf) or report (*.erf)
|
||||
rem %2 - path to folder to save 1C data processors & reports in 1C:Designer XML format
|
||||
rem %3 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
|
||||
set V8_TOOL="C:\Program Files\1cv8\%V8_VERSION%\bin\1cv8.exe"
|
||||
FOR /F "usebackq tokens=1 delims=" %%i IN (`where ring`) DO (
|
||||
set RING_TOOL="%%i"
|
||||
)
|
||||
|
||||
set IB_PATH=%V8_TEMP%\tmp_db
|
||||
set WS_PATH=%V8_TEMP%\edt_ws
|
||||
|
||||
set DP_SOURCE=%1
|
||||
IF defined DP_SOURCE set DP_SOURCE=%DP_SOURCE:"=%
|
||||
set DP_SOURCE_PATH=%~dp1
|
||||
set DP_DEST_PATH=%2
|
||||
IF defined DP_DEST_PATH set DP_DEST_PATH=%DP_DEST_PATH:"=%
|
||||
set BASE_CONFIG=%3
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined DP_SOURCE (
|
||||
echo Missed parameter 1 "path to folder containing data processors (*.epf) & reports (*.erf) in binary or EDT format or path to binary data processor (*.epf) or report (*.erf)"
|
||||
exit /b 1
|
||||
)
|
||||
IF not defined DP_DEST_PATH (
|
||||
echo Missed parameter 2 "path to folder to save 1C data processors & reports in 1C:Designer XML format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
md "%V8_TEMP%"
|
||||
IF not exist "%DP_DEST_PATH%" md "%DP_DEST_PATH%"
|
||||
|
||||
echo Set infobase for export data processor/report...
|
||||
set BASE_CONFIG_DESCRIPTION=configuration from "%BASE_CONFIG%"
|
||||
|
||||
IF "%BASE_CONFIG%" equ "" (
|
||||
md "%IB_PATH%"
|
||||
echo Creating infobase "%IB_PATH%"...
|
||||
set BASE_CONFIG_DESCRIPTION=empty configuration
|
||||
%V8_TOOL% CREATEINFOBASE File=%IB_PATH%; /DisableStartupDialogs
|
||||
goto export
|
||||
)
|
||||
IF /i "%BASE_CONFIG:~-3%" equ ".cf" (
|
||||
echo Basic config source type: Configuration file ^(CF^)
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%"
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\DT-INF\" (
|
||||
echo Basic config source type: 1C:EDT project
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%" designer
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\Configuration.xml" (
|
||||
echo Basic config source type: 1C:Designer XML files
|
||||
md "%IB_PATH%"
|
||||
call %~dp0conf2ib.cmd "%BASE_CONFIG%" "%IB_PATH%" designer
|
||||
goto export
|
||||
)
|
||||
IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
echo Basic config source type: Infobase
|
||||
set BASE_CONFIG_DESCRIPTION=existed configuration
|
||||
set IB_PATH=%BASE_CONFIG%
|
||||
goto export
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
||||
echo Checking data processord ^& reports source type...
|
||||
|
||||
set DP_SOURCE_IS_EDT=0
|
||||
IF exist "%DP_SOURCE%\DT-INF\" (
|
||||
IF exist "%DP_SOURCE%\src\ExternalDataProcessors\" set DP_SOURCE_IS_EDT=1
|
||||
IF exist "%DP_SOURCE%\src\ExternalReports\" set DP_SOURCE_IS_EDT=1
|
||||
)
|
||||
IF "%DP_SOURCE_IS_EDT%" equ "1" (
|
||||
echo Source type: 1C:EDT project
|
||||
echo Export "%EDT_PATH%" to 1C:Designer XML format "%DP_DEST_PATH%"...
|
||||
md "%WS_PATH%"
|
||||
call %RING_TOOL% edt workspace export --project "%DP_SOURCE%" --configuration-files "%DP_DEST_PATH%" --workspace-location "%WS_PATH%"
|
||||
goto end
|
||||
)
|
||||
FOR /f %%f IN ('dir /b /a-d "%DP_SOURCE%\*.epf" "%DP_SOURCE%\*.erf"') DO (
|
||||
echo Source type: External data processors ^(epf^) ^& reports ^(erf^) binary files
|
||||
set DP_SOURCE_PATH=%DP_SOURCE%
|
||||
set DP_SOURCE_MASK="%DP_SOURCE%\*.epf" "%DP_SOURCE%\*.erf"
|
||||
goto export_epf
|
||||
)
|
||||
set DP_SOURCE_MASK="%DP_SOURCE%"
|
||||
IF /i "%DP_SOURCE:~-4%" equ ".epf" (
|
||||
echo Source type: External data processor binary file ^(epf^)
|
||||
goto export_epf
|
||||
)
|
||||
IF /i "%DP_SOURCE:~-4%" equ ".erf" (
|
||||
echo Source type: External report binary file ^(erf^)
|
||||
goto export_epf
|
||||
)
|
||||
|
||||
echo Wrong path "%DP_SOURCE%"!
|
||||
echo Folder containing external data processors ^& reports in binary or XML format, data processor binary ^(*.epf^) or report binary ^(*.erf^) expected.
|
||||
exit /b 1
|
||||
|
||||
:export_epf
|
||||
|
||||
echo Export data processors ^& reports from folder "%DP_SOURCE%" to 1C:Designer XML format "%DP_DEST_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
|
||||
FOR /f %%f IN ('dir /b /a-d %DP_SOURCE_MASK%') DO (
|
||||
echo Building %%~nf...
|
||||
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%DP_DEST_PATH%" "%DP_SOURCE_PATH%\%%~nxf"
|
||||
)
|
||||
|
||||
:end
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
@ -1,11 +1,11 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="Prepare data processors ^& reports with 1C:Designer XML format..."
|
||||
set TEST_NAME="Prepare data processors & reports with 1C:Designer XML format..."
|
||||
set TEST_OUT_PATH=%TEST_XML_DP%
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml %TEST_OUT_PATH%\ВнешняяОбработка2.xml %TEST_OUT_PATH%\ВнешнийОтчет1.xml %TEST_OUT_PATH%\ВнешнийОтчет2.xml
|
||||
|
||||
echo ===
|
||||
echo Prepare %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
|
||||
call %SCRIPTS_PATH%\dp-bin-dir2xml.cmd "%TEST_BINARY%" "%TEST_OUT_PATH%" "%TEST_IB%"
|
||||
call %SCRIPTS_PATH%\dp2xml.cmd "%TEST_BINARY%" "%TEST_OUT_PATH%" "%TEST_IB%"
|
||||
|
@ -1,11 +1,11 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="Prepare data processors ^& reports with 1C:EDT format..."
|
||||
set TEST_NAME="Prepare data processors & reports with 1C:EDT format..."
|
||||
set TEST_OUT_PATH=%TEST_EDT_DP%
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка2\
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка1\ %TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка2\ %TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет1\ %TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет2\
|
||||
|
||||
echo ===
|
||||
echo Prepare %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
|
||||
call %SCRIPTS_PATH%\xml2edt.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%"
|
||||
call %SCRIPTS_PATH%\dp2edt.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%"
|
||||
|
@ -7,4 +7,4 @@ set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp-bin2xml.cmd "%FIXTURES_PATH%\bin\ВнешняяОбработка1.epf" "%TEST_OUT_PATH%" ibcmd
|
||||
call %SCRIPTS_PATH%\dp2xml.cmd "%FIXTURES_PATH%\bin\ВнешняяОбработка1.epf" "%TEST_OUT_PATH%"
|
||||
|
@ -7,4 +7,4 @@ set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp-bin2edt.cmd "%FIXTURES_PATH%\bin\ВнешнийОтчет1.erf" "%TEST_OUT_PATH%"
|
||||
call %SCRIPTS_PATH%\dp2edt.cmd "%FIXTURES_PATH%\bin\ВнешнийОтчет1.erf" "%TEST_OUT_PATH%"
|
||||
|
10
tests/tests/221_dp-bin-dir2xml-w-ib-temp.cmd
Normal file
10
tests/tests/221_dp-bin-dir2xml-w-ib-temp.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> XML (using temp IB)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml %TEST_OUT_PATH%\ВнешняяОбработка2.xml %TEST_OUT_PATH%\ВнешнийОтчет1.xml %TEST_OUT_PATH%\ВнешнийОтчет2.xml
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2xml.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%"
|
@ -1,10 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> XML"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешнийОтчет1.xml
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp-bin-dir2xml.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%"
|
@ -1,10 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> EDT"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка2\
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp-bin-dir2edt.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%"
|
10
tests/tests/222_dp-bin-dir2xml-w-ib-existed.cmd
Normal file
10
tests/tests/222_dp-bin-dir2xml-w-ib-existed.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> XML (using existed IB)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml %TEST_OUT_PATH%\ВнешняяОбработка2.xml %TEST_OUT_PATH%\ВнешнийОтчет1.xml %TEST_OUT_PATH%\ВнешнийОтчет2.xml
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2xml.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%" "%TEST_IB%"
|
10
tests/tests/223_dp-bin-dir2xml-w-ib-cf.cmd
Normal file
10
tests/tests/223_dp-bin-dir2xml-w-ib-cf.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> XML (using IB from CF)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml %TEST_OUT_PATH%\ВнешняяОбработка2.xml %TEST_OUT_PATH%\ВнешнийОтчет1.xml %TEST_OUT_PATH%\ВнешнийОтчет2.xml
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2xml.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%" "%TEST_BINARY%\1cv8.cf"
|
10
tests/tests/224_dp-bin-dir2xml-w-ib-xml.cmd
Normal file
10
tests/tests/224_dp-bin-dir2xml-w-ib-xml.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> XML (using IB from XML)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml %TEST_OUT_PATH%\ВнешняяОбработка2.xml %TEST_OUT_PATH%\ВнешнийОтчет1.xml %TEST_OUT_PATH%\ВнешнийОтчет2.xml
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2xml.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%" "%TEST_XML_CF%"
|
10
tests/tests/225_dp-bin-dir2xml-w-ib-edt.cmd
Normal file
10
tests/tests/225_dp-bin-dir2xml-w-ib-edt.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> XML (using IB from EDT)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml %TEST_OUT_PATH%\ВнешняяОбработка2.xml %TEST_OUT_PATH%\ВнешнийОтчет1.xml %TEST_OUT_PATH%\ВнешнийОтчет2.xml
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2xml.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%" "%TEST_EDT_CF%"
|
10
tests/tests/226_dp-bin-dir2edt.cmd
Normal file
10
tests/tests/226_dp-bin-dir2edt.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> EDT"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка1\ %TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка2\ %TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет1\ %TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет2\
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2edt.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%"
|
@ -7,4 +7,4 @@ set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка2.epf
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp-xml2epf.cmd "%TEST_XML_DP%\ВнешняяОбработка2.xml" "%TEST_OUT_PATH%"
|
||||
call %SCRIPTS_PATH%\dp2epf.cmd "%TEST_XML_DP%\ВнешняяОбработка2.xml" "%TEST_OUT_PATH%"
|
||||
|
10
tests/tests/232_dp-xml-dir2epf-w-ib-existed.cmd
Normal file
10
tests/tests/232_dp-xml-dir2epf-w-ib-existed.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (XML folder) -> binary (using existed IB)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.epf %TEST_OUT_PATH%\ВнешняяОбработка2.epf %TEST_OUT_PATH%\ВнешнийОтчет1.erf %TEST_OUT_PATH%\ВнешнийОтчет2.erf
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2epf.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%" "%TEST_IB%"
|
@ -1,10 +0,0 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (XML folder) -> binary"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.epf
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp-xml-dir2epf.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%"
|
10
tests/tests/233_dp-xml-dir2epf-w-ib-cf.cmd
Normal file
10
tests/tests/233_dp-xml-dir2epf-w-ib-cf.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (XML folder) -> binary (using IB from CF)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.epf %TEST_OUT_PATH%\ВнешняяОбработка2.epf %TEST_OUT_PATH%\ВнешнийОтчет1.erf %TEST_OUT_PATH%\ВнешнийОтчет2.erf
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2epf.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%" "%TEST_BINARY%\1cv8.cf"
|
10
tests/tests/234_dp-xml-dir2epf-w-ib-xml.cmd
Normal file
10
tests/tests/234_dp-xml-dir2epf-w-ib-xml.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (XML folder) -> binary (using IB from XML)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.epf %TEST_OUT_PATH%\ВнешняяОбработка2.epf %TEST_OUT_PATH%\ВнешнийОтчет1.erf %TEST_OUT_PATH%\ВнешнийОтчет2.erf
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2epf.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%" "%TEST_XML_CF%"
|
10
tests/tests/235_dp-xml-dir2epf-w-ib-edt.cmd
Normal file
10
tests/tests/235_dp-xml-dir2epf-w-ib-edt.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (XML folder) -> binary (using IB from EDT)"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.epf %TEST_OUT_PATH%\ВнешняяОбработка2.epf %TEST_OUT_PATH%\ВнешнийОтчет1.erf %TEST_OUT_PATH%\ВнешнийОтчет2.erf
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2epf.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%" "%TEST_EDT_CF%"
|
10
tests/tests/241_dp-xml-dir2edt.cmd
Normal file
10
tests/tests/241_dp-xml-dir2edt.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (binary folder) -> EDT"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка1\ %TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка2\ %TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет1\ %TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет2\
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2edt.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%"
|
10
tests/tests/251_dp-edt2epf.cmd
Normal file
10
tests/tests/251_dp-edt2epf.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@ECHO OFF
|
||||
|
||||
set TEST_NAME="DP (EDT project) -> binary"
|
||||
set TEST_OUT_PATH=%OUT_PATH%\%~n0
|
||||
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.epf %TEST_OUT_PATH%\ВнешняяОбработка2.epf %TEST_OUT_PATH%\ВнешнийОтчет1.erf %TEST_OUT_PATH%\ВнешнийОтчет2.erf
|
||||
|
||||
echo ===
|
||||
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
|
||||
echo ===
|
||||
call %SCRIPTS_PATH%\dp2epf.cmd "%TEST_EDT_DP%" "%TEST_OUT_PATH%" "%TEST_IB%"
|
Loading…
Reference in New Issue
Block a user