TCommands.AddCommand¶
Add a new command to the collection
Declaration¶
Source position: fpmkunit.pp line 426
public
function AddCommand(const Cmd: string) : TCommand;
function AddCommand(const Cmd: string; const Options: string) : TCommand;
function AddCommand(const Cmd: string; const Options: string;
const Dest: string; const Source: string) : TCommand;
function AddCommand(At: TCommandAt; const Cmd: string) : TCommand;
function AddCommand(At: TCommandAt; const Cmd: string;
const Options: string) : TCommand;
function AddCommand(At: TCommandAt; const Cmd: string;
const Options: string; const Dest: string;
const Source: string) : TCommand;
Description¶
Creates and adds a new TCommand object to the commands collection. The command can be configured with executable path, options, source and destination files, and execution timing.
Commands are executed during the build process at the specified timing (before or after compilation, installation, etc.).