Skip to content

TCommand

Represents a command to be executed during build

Declaration

Source position: fpmkunit.pp line 382

type

  TCommand = class(TNamedItem)
  public
    destructor Destroy;
    function HaveOptions : Boolean;
    function CmdLineOptions : string;
    procedure ParseOptions;
    property SourceFile: string; {rw}
    property DestFile: string; {rw}
    property Command: string; {rw}
    property Options: TStrings; {rw}
    property At: TCommandAt; {rw}
    property IgnoreResult: Boolean; {rw}
    property BeforeCommand: TNotifyEvent; {rw}
    property AfterCommand: TNotifyEvent; {rw}
  end;

Description

Class that encapsulates a command to be executed at specific points during the build process. Stores command information including the executable, arguments, and execution timing.

Properties

Member Visibility Description
AfterCommand public Command to execute after this command
At public When to execute the command
BeforeCommand public Command to execute before this command
Command public Command line to execute
DestFile public Destination file for the command
IgnoreResult public Whether to ignore command execution result
Options public Command line options
SourceFile public Source file for the command
See all Properties

Methods

Member Visibility Description
CmdLineOptions public Get formatted command line options
Destroy public Destructor that cleans up command resources
HaveOptions public Check if command has any options
ParseOptions public Parse options from a string
See all Methods