|
@@ -75,7 +75,7 @@ type
|
|
|
Public
|
|
|
Constructor Create(AOwner : TComponent); override;
|
|
|
Destructor Destroy; override;
|
|
|
- Procedure Execute;
|
|
|
+ Function Execute: Boolean;
|
|
|
Procedure GetLastError(Out AError,AErrorClass : String);
|
|
|
// Streams take precedence over filenames. They will be freed on destroy!
|
|
|
// OutputStream can be used combined with write callbacks.
|
|
@@ -202,22 +202,22 @@ begin
|
|
|
Include(O,woForwardClasses);
|
|
|
end;
|
|
|
|
|
|
-procedure TStubCreator.Execute;
|
|
|
-
|
|
|
-
|
|
|
+function TStubCreator.Execute: Boolean;
|
|
|
begin
|
|
|
FLastErrorClass:='';
|
|
|
FLastError:='';
|
|
|
+ Result := False;
|
|
|
if Defines.IndexOf('MakeStub')=-1 then
|
|
|
|
|
|
Try
|
|
|
DoExecute;
|
|
|
+
|
|
|
+ Result := True;
|
|
|
except
|
|
|
On E : Exception do
|
|
|
begin
|
|
|
FLastErrorClass:=E.Classname;
|
|
|
FLastError:=E.Message;
|
|
|
- Raise;
|
|
|
end;
|
|
|
end;
|
|
|
end;
|