2008-03-09 20:36:27 +00:00
|
|
|
program X2XMLDataBindingCmdLine;
|
|
|
|
|
|
|
|
uses
|
|
|
|
ActiveX,
|
|
|
|
SysUtils,
|
|
|
|
DelphiXMLDataBindingGenerator in 'Units\DelphiXMLDataBindingGenerator.pas',
|
|
|
|
XMLDataBindingGenerator in 'Units\XMLDataBindingGenerator.pas',
|
2008-03-21 15:23:14 +00:00
|
|
|
XMLDataBindingHelpers in 'Units\XMLDataBindingHelpers.pas',
|
2008-04-18 14:36:17 +00:00
|
|
|
DelphiXMLDataBindingResources in 'Units\DelphiXMLDataBindingResources.pas';
|
2008-03-09 20:36:27 +00:00
|
|
|
|
|
|
|
begin
|
|
|
|
CoInitialize(nil);
|
|
|
|
|
|
|
|
with TDelphiXMLDataBindingGenerator.Create() do
|
|
|
|
try
|
|
|
|
OutputType := otSingle;
|
|
|
|
OutputPath := ParamStr(2);
|
|
|
|
|
2008-04-14 19:28:57 +00:00
|
|
|
if DirectoryExists(OutputPath) then
|
|
|
|
OutputType := otMultiple
|
|
|
|
else
|
|
|
|
OutputType := otSingle;
|
|
|
|
|
2008-03-09 20:36:27 +00:00
|
|
|
Execute(ParamStr(1));
|
|
|
|
finally
|
|
|
|
Free();
|
|
|
|
end;
|
|
|
|
end.
|
|
|
|
|