mirror of
https://github.com/arkuznetsov/1CFilesConverter.git
synced 2024-11-28 08:49:00 +02:00
feat: Реализован вывод справки по параметрам в случае возникновения ошибки указания параметров;
Поправлены информационные сообщения и сообщения об ошибках.
This commit is contained in:
parent
7bb1030db5
commit
609e0c8ce4
@ -1,8 +1,8 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (load) 1C configuration from 1C:EDT format to 1C configuration file (*.cf)
|
||||
rem %1 - path to 1C configuration source (infobase, 1C:Designer XML files or 1C:EDT project)
|
||||
rem %2 - path to 1C configuration file (*.cf)
|
||||
echo Convert 1C configuration to 1C configuration file ^(*.cf^)
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -30,12 +30,21 @@ IF defined CONFIG_FILE (
|
||||
)
|
||||
|
||||
IF not defined CONFIG_SOURCE (
|
||||
echo Missed parameter 1 "path to 1C configuration source (infobase, 1C:Designer XML files or 1C:EDT project)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to 1C configuration source (infobase, 1C:Designer XML files or 1C:EDT project)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined CONFIG_FILE (
|
||||
echo Missed parameter 2 "path to 1C configuration file (*.cf)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 2 - "path to 1C configuration file (*.cf)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to 1C configuration source ^(infobase, 1C:Designer XML files or 1C:EDT project^)
|
||||
echo %%2 - path to 1C configuration file ^(*.cf^)
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
|
@ -1,8 +1,8 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) 1C configuration file (*.cf) to 1C:EDT format
|
||||
rem %1 - path to 1C configuration source (1C configuration file (*.cf), infobase or 1C:Designer XML files)
|
||||
rem %2 - path to folder to save configuration files in 1C:EDT project format
|
||||
echo Convert 1C configuration to 1C:EDT project
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -26,12 +26,20 @@ set CONFIG_PATH=%2
|
||||
IF defined CONFIG_PATH set CONFIG_PATH=%CONFIG_PATH:"=%
|
||||
|
||||
IF not defined CONFIG_SOURCE (
|
||||
echo Missed parameter 1 "path to 1C configuration source (1C configuration file (*.cf), infobase or 1C:Designer XML files)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to 1C configuration source (1C configuration file (*.cf), infobase or 1C:Designer XML files)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined CONFIG_PATH (
|
||||
echo Missed parameter 2 "path to folder to save configuration files in 1C:EDT peoject format"
|
||||
exit /b 1
|
||||
echo Missed parameter 2 - "path to folder to save configuration files in 1C:EDT peoject format"
|
||||
set [ERROR] ERROR_CODE=1
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to 1C configuration source ^(1C configuration file ^(*.cf^), infobase or 1C:Designer XML files^)
|
||||
echo %%2 - path to folder to save configuration files in 1C:EDT project format
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
@ -60,7 +68,7 @@ IF exist "%CONFIG_SOURCE%\Configuration.xml" (
|
||||
)
|
||||
|
||||
echo Error cheking type of configuration "%CONFIG_SOURCE%"!
|
||||
echo Infobase, configuration file (*.cf) or 1C:Designer XML files expected.
|
||||
echo Infobase, configuration file ^(*.cf^) or 1C:Designer XML files expected.
|
||||
exit /b 1
|
||||
|
||||
:export_cf
|
||||
|
@ -1,8 +1,8 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Load 1C configuration file (*.cf) to 1C infobase (file)
|
||||
rem %1 - path to 1C configuration source (1C configuration file (*.cf), 1C:Designer XML files or 1C:EDT project)
|
||||
rem %2 - path to folder contains 1C infobase
|
||||
echo Load 1C configuration to 1C infobase
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -25,12 +25,20 @@ set IB_PATH=%2
|
||||
IF defined IB_PATH set IB_PATH=%IB_PATH:"=%
|
||||
|
||||
IF not defined CONFIG_SOURCE (
|
||||
echo Missed parameter 1 "path to 1C configuration source (1C configuration file (*.cf), 1C:Designer XML files or 1C:EDT project)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to 1C configuration source (1C configuration file (*.cf), 1C:Designer XML files or 1C:EDT project)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined IB_PATH (
|
||||
echo Missed parameter 2 "path to folder contains 1C infobase"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 2 - "path to folder contains 1C infobase"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to 1C configuration source ^(1C configuration file ^(*.cf^), 1C:Designer XML files or 1C:EDT project^)
|
||||
echo %%2 - path to folder contains 1C infobase
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear infobase folder "%IB_PATH%"...
|
||||
@ -56,7 +64,7 @@ IF exist "%CONFIG_SOURCE%\Configuration.xml" (
|
||||
)
|
||||
|
||||
echo Error cheking type of configuration "%CONFIG_SOURCE%"!
|
||||
echo Configuration file (*.cf), 1C:Designer XML files or 1C:EDT project expected.
|
||||
echo Configuration file ^(*.cf^), 1C:Designer XML files or 1C:EDT project expected.
|
||||
exit /b 1
|
||||
|
||||
:export_edt
|
||||
|
@ -1,8 +1,8 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) 1C configuration file (*.cf) to 1C:Designer XML format
|
||||
rem %1 - path to 1C configuration source (1C configuration file (*.cf), infobase or 1C:EDT project)
|
||||
rem %2 - path to folder to save configuration files in 1C:Designer XML format
|
||||
echo Convert 1C configuration to 1C:Designer XML format
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -25,12 +25,20 @@ set CONFIG_PATH=%2
|
||||
IF defined CONFIG_PATH set CONFIG_PATH=%CONFIG_PATH:"=%
|
||||
|
||||
IF not defined CONFIG_SOURCE (
|
||||
echo Missed parameter 1 "path to 1C configuration source (1C configuration file (*.cf), infobase or 1C:EDT project)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to 1C configuration source (1C configuration file (*.cf), infobase or 1C:EDT project)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined CONFIG_PATH (
|
||||
echo Missed parameter 2 "path to folder to save configuration files in 1C:Designer XML format"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 2 - "path to folder to save configuration files in 1C:Designer XML format"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to 1C configuration source ^(1C configuration file ^(*.cf^), infobase or 1C:EDT project^)
|
||||
echo %%2 - path to folder to save configuration files in 1C:Designer XML format
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
@ -56,7 +64,7 @@ IF exist "%CONFIG_SOURCE%\DT-INF\" (
|
||||
)
|
||||
|
||||
echo Error cheking type of configuration "%CONFIG_SOURCE%"!
|
||||
echo Infobase, configuration file (*.cf) or 1C:EDT project expected.
|
||||
echo Infobase, configuration file ^(*.cf^) or 1C:EDT project expected.
|
||||
exit /b 1
|
||||
|
||||
:export_cf
|
||||
|
@ -1,11 +1,8 @@
|
||||
@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
|
||||
echo Convert 1C external data processors ^& reports to 1C:EDT project
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -30,21 +27,33 @@ 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
|
||||
echo [ERROR] 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)"
|
||||
set ERROR_CODE=1
|
||||
) ELSE (
|
||||
IF not exist "%DP_SOURCE%" (
|
||||
echo [ERROR] Path "%DP_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
set ERROR_CODE=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
|
||||
echo [ERROR] Missed parameter 2 - "path to folder to save 1C data processors & reports in 1C:EDT format"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
echo [INFO] Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to folder containing data processors ^(*.epf^) ^& reports ^(*.erf^) in binary or XML format
|
||||
echo or path to binary data processor ^(*.epf^) or report ^(*.erf^)
|
||||
echo %%2 - path to folder to save 1C data processors ^& reports in 1C:EDT format
|
||||
echo %%3 - ^(optional^) path to 1C configuration ^(binary ^(*.cf^), 1C:Designer XML format or 1C:EDT project^)
|
||||
echo or folder contains 1C infobase used for convertion
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
@ -88,7 +97,7 @@ IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
echo Infobase, configuration file ^(*.cf^), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
@ -1,11 +1,8 @@
|
||||
@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 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
|
||||
echo Convert 1C external data processors ^& reports to binary format ^(*.epf, *.erf^)
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -30,17 +27,33 @@ 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
|
||||
echo [ERROR] 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"
|
||||
set ERROR_CODE=1
|
||||
) ELSE (
|
||||
IF not exist "%DP_SOURCE%" (
|
||||
echo [ERROR] Path "%DP_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
set ERROR_CODE=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
|
||||
echo [ERROR] Missed parameter 2 - "path to folder to save data processors & reports in binary format (*.epf, *.erf)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
echo [INFO] Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to folder contains 1C data processors ^& reports in 1C:Designer XML format or EDT format
|
||||
echo or path to main xml-file of data processor or report
|
||||
echo %%2 - path to folder to save data processors ^& reports in binary format ^(*.epf, *.erf^)"
|
||||
echo %%3 - ^(optional^) path to 1C configuration ^(binary ^(*.cf^), 1C:Designer XML format or 1C:EDT project^)
|
||||
echo or folder contains 1C infobase used for convertion
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
@ -83,7 +96,7 @@ IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
echo Infobase, configuration file ^(*.cf^), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
@ -1,11 +1,8 @@
|
||||
@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 project
|
||||
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
|
||||
echo Convert 1C external data processors ^& reports to 1C:Designer XML format
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -29,17 +26,33 @@ 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 project or path to binary data processor (*.epf) or report (*.erf)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to folder containing data processors (*.epf) & reports (*.erf) in binary or EDT project or path to binary data processor (*.epf) or report (*.erf)"
|
||||
set ERROR_CODE=1
|
||||
) ELSE (
|
||||
IF not exist "%DP_SOURCE%" (
|
||||
echo [ERROR] Path "%DP_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
set ERROR_CODE=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
|
||||
echo [ERROR] Missed parameter 2 - "path to folder to save 1C data processors & reports in 1C:Designer XML format"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
echo [INFO] Path "%BASE_CONFIG%" doesn't exist ^(parameter 3^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to folder containing data processors ^(*.epf^) ^& reports ^(*.erf^) in binary or EDT project
|
||||
echo or path to binary data processor ^(*.epf^) or report ^(*.erf^)
|
||||
echo %%2 - path to folder to save 1C data processors ^& reports in 1C:Designer XML format
|
||||
echo %%3 - ^(optional^) path to 1C configuration ^(binary ^(*.cf^), 1C:Designer XML format or 1C:EDT project^)
|
||||
echo or folder contains 1C infobase used for convertion
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
@ -82,7 +95,7 @@ IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
echo Infobase, configuration file ^(*.cf^), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
@ -1,8 +1,8 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Validate 1C configuration using 1C:EDT (ring tool)
|
||||
rem %1 - path to 1C configuration, extension, data processors or reports (binary (*.cf, *.cfe, *.epf, *.erf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem %2 - path to validation report file
|
||||
echo Validate 1C configuration, extension, external data processors ^& reports using 1C:EDT ^(using ring tool^)
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -29,12 +29,20 @@ set EXT_NAME=%3
|
||||
IF defined EXT_NAME set EXT_NAME=%EXT_NAME:"=%
|
||||
|
||||
IF not defined CONFIG_PATH (
|
||||
echo Missed parameter 1 "path to 1C configuration, extension, data processors or reports (binary (*.cf, *.cfe, *.epf, *.erf), 1C:Designer XML format or 1C:EDT format)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to 1C configuration, extension, data processors or reports (binary (*.cf, *.cfe, *.epf, *.erf), 1C:Designer XML format or 1C:EDT format)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined REPORT_FILE (
|
||||
echo Missed parameter 2 "path to validation report file"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 2 - "path to validation report file"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to 1C configuration, extension, data processors or reports ^(binary ^(*.cf, *.cfe, *.epf, *.erf^), 1C:Designer XML format or 1C:EDT project^)
|
||||
echo %%2 - path to validation report file
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
|
@ -1,11 +1,8 @@
|
||||
@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 extension in 1C:Designer XML format or EDT project
|
||||
rem %2 - path to 1C configuration extension file (*.cfe)
|
||||
rem %3 - configuration extension name
|
||||
rem %4 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
echo Convert 1C configuration extension to binary format ^(*.cfe^)
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -36,21 +33,37 @@ set BASE_CONFIG=%4
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined EXT_SOURCE (
|
||||
echo Missed parameter 1 "path to folder contains 1C extension in 1C:Designer XML format or EDT project"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to folder contains 1C extension in 1C:Designer XML format or EDT project"
|
||||
set ERROR_CODE=1
|
||||
) ELSE (
|
||||
IF not exist "%EXT_SOURCE%" (
|
||||
echo [ERROR] Path "%EXT_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
)
|
||||
IF not defined EXT_FILE (
|
||||
echo Missed parameter 2 "path to 1C configuration extension file (*.cfe)"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 2 - "path to 1C configuration extension file (*.cfe)"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined EXT_NAME (
|
||||
echo Missed parameter 3 "configuration extension name"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 3 - "configuration extension name"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 4^), empty infobase will be used.
|
||||
echo [INFO] Path "%BASE_CONFIG%" doesn't exist ^(parameter 4^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to folder contains 1C extension in 1C:Designer XML format or EDT project
|
||||
echo %%2 - path to 1C configuration extension file ^(*.cfe^)
|
||||
echo %%3 - configuration extension name
|
||||
echo %%4 - ^(optional^) path to 1C configuration ^(binary ^(*.cf^), 1C:Designer XML format or 1C:EDT project^)
|
||||
echo or folder contains 1C infobase used for convertion
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
@ -93,7 +106,7 @@ IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
echo Infobase, configuration file ^(*.cf^), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
|
@ -1,11 +1,8 @@
|
||||
@ECHO OFF
|
||||
|
||||
rem Convert (dump) all 1C data processors & reports (*.epf, *.erf) in folder to 1C:EDT format
|
||||
rem %1 - path to folder contains 1C extension binary file (*.cfe) or in 1C:Designer XML format
|
||||
rem %2 - path to folder to save configuration extension in 1C:EDT project format
|
||||
rem %3 - configuration extension name
|
||||
rem %4 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
echo Convert 1C configuration extension to 1C:EDT project
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -28,29 +25,42 @@ IF defined EXT_SOURCE set EXT_SOURCE=%EXT_SOURCE:"=%
|
||||
set EXT_DEST_PATH=%2
|
||||
IF defined EXT_DEST_PATH set EXT_DEST_PATH=%EXT_DEST_PATH:"=%
|
||||
set EXT_NAME=%3
|
||||
IF defined EXT_NAME set EXT_NAME=%EXT_NAME:"=%
|
||||
set BASE_CONFIG=%4
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined EXT_SOURCE (
|
||||
echo Missed parameter 1 "path to folder contains 1C extension binary file (*.cfe) or in 1C:Designer XML format"
|
||||
exit /b 1
|
||||
)
|
||||
IF not exist "%EXT_SOURCE%" (
|
||||
echo Path "%EXT_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to folder contains 1C extension binary file (*.cfe) or in 1C:Designer XML format"
|
||||
set ERROR_CODE=1
|
||||
) ELSE (
|
||||
IF not exist "%EXT_SOURCE%" (
|
||||
echo [ERROR] Path "%EXT_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
)
|
||||
IF not defined EXT_DEST_PATH (
|
||||
echo Missed parameter 2 "path to folder to save configuration extension in 1C:EDT project format"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 2 - "path to folder to save configuration extension in 1C:EDT project format"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined EXT_NAME (
|
||||
echo Missed parameter 3 "configuration extension name"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 3 - "configuration extension name"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 4^), empty infobase will be used.
|
||||
echo [INFO] Path "%BASE_CONFIG%" doesn't exist ^(parameter 4^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to folder contains 1C extension binary file ^(*.cfe^) or in 1C:Designer XML format
|
||||
echo %%2 - path to folder to save configuration extension in 1C:EDT project format
|
||||
echo %%3 - configuration extension name
|
||||
echo %%4 - ^(optional^) path to 1C configuration ^(binary ^(*.cf^), 1C:Designer XML format or 1C:EDT project^)
|
||||
echo or folder contains 1C infobase used for convertion
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
@ -94,7 +104,7 @@ IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
echo Infobase, configuration file ^(*.cf^), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
@ -114,7 +124,7 @@ IF exist "%EXT_SOURCE%\Configuration.xml" (
|
||||
)
|
||||
|
||||
echo Wrong path "%EXT_SOURCE%"!
|
||||
echo Configuration extension binary (*.cfe) or folder containing configuration extension in 1C:Designer XML format expected.
|
||||
echo Configuration extension binary ^(*.cfe^) or folder containing configuration extension in 1C:Designer XML format expected.
|
||||
exit /b 1
|
||||
|
||||
:export_cfe
|
||||
|
@ -1,11 +1,8 @@
|
||||
@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 1C extension binary file (*.cfe) or EDT project
|
||||
rem %2 - path to folder to save configuration extension files in 1C:Designer XML format
|
||||
rem %3 - configuration extension name
|
||||
rem %4 - path to 1C configuration (binary (*.cf), 1C:Designer XML format or 1C:EDT format)
|
||||
rem or folder contains 1C infobase used for convertion
|
||||
echo Convert 1C configuration extension to 1C:Designer XML format
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
IF not defined V8_VERSION set V8_VERSION=8.3.20.2290
|
||||
IF not defined V8_TEMP set V8_TEMP=%TEMP%\1c
|
||||
@ -27,25 +24,42 @@ IF defined EXT_SOURCE set EXT_SOURCE=%EXT_SOURCE:"=%
|
||||
set EXT_DEST_PATH=%2
|
||||
IF defined EXT_DEST_PATH set EXT_DEST_PATH=%EXT_DEST_PATH:"=%
|
||||
set EXT_NAME=%3
|
||||
IF defined EXT_NAME set EXT_NAME=%EXT_NAME:"=%
|
||||
set BASE_CONFIG=%4
|
||||
IF defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
|
||||
|
||||
IF not defined EXT_SOURCE (
|
||||
echo Missed parameter 1 "path to folder contains 1C extension binary file (*.cfe) or EDT project"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 1 - "path to folder contains 1C extension binary file (*.cfe) or EDT project"
|
||||
set ERROR_CODE=1
|
||||
) ELSE (
|
||||
IF not exist "%EXT_SOURCE%" (
|
||||
echo [ERROR] Path "%EXT_SOURCE%" doesn't exist ^(parameter 1^).
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
)
|
||||
IF not defined EXT_DEST_PATH (
|
||||
echo Missed parameter 2 "path to folder to save configuration extension files in 1C:Designer XML format"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 2 - "path to folder to save configuration extension files in 1C:Designer XML format"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not defined EXT_NAME (
|
||||
echo Missed parameter 3 "configuration extension name"
|
||||
exit /b 1
|
||||
echo [ERROR] Missed parameter 3 - "configuration extension name"
|
||||
set ERROR_CODE=1
|
||||
)
|
||||
IF not exist "%BASE_CONFIG%" (
|
||||
echo Path "%BASE_CONFIG%" doesn't exist ^(parameter 4^), empty infobase will be used.
|
||||
echo [INFO] Path "%BASE_CONFIG%" doesn't exist ^(parameter 4^), empty infobase will be used.
|
||||
set BASE_CONFIG=
|
||||
)
|
||||
IF %ERROR_CODE% neq 0 (
|
||||
echo ===
|
||||
echo [ERROR] Input parameters error. Expected:
|
||||
echo %%1 - path to folder contains 1C extension binary file ^(*.cfe^) or EDT project
|
||||
echo %%2 - path to folder to save configuration extension files in 1C:Designer XML format
|
||||
echo %%3 - configuration extension name
|
||||
echo %%4 - ^(optional^) path to 1C configuration ^(binary ^(*.cf^), 1C:Designer XML format or 1C:EDT project^)
|
||||
echo or folder contains 1C infobase used for convertion
|
||||
echo.
|
||||
exit /b %ERROR_CODE%
|
||||
)
|
||||
|
||||
echo Clear temporary files...
|
||||
IF exist "%V8_TEMP%" rd /S /Q "%V8_TEMP%"
|
||||
@ -88,7 +102,7 @@ IF exist "%BASE_CONFIG%\1cv8.1cd" (
|
||||
)
|
||||
|
||||
echo Error cheking type of basic configuration "%BASE_CONFIG%"!
|
||||
echo Infobase, configuration file (*.cf), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
echo Infobase, configuration file ^(*.cf^), 1C:Designer XML, 1C:EDT project or no configuration expected.
|
||||
exit /b 1
|
||||
|
||||
:export
|
||||
@ -109,7 +123,7 @@ IF exist "%EXT_SOURCE%\DT-INF\" (
|
||||
)
|
||||
|
||||
echo Wrong path "%EXT_SOURCE%"!
|
||||
echo Configuration extension binary (*.cfe) or folder containing configuration extension 1C:EDT project expected.
|
||||
echo Configuration extension binary ^(*.cfe^) or folder containing configuration extension 1C:EDT project expected.
|
||||
exit /b 1
|
||||
|
||||
:export_cfe
|
||||
|
Loading…
Reference in New Issue
Block a user