<kill>

[This is preliminary documentation and subject to change.]

Immediately stops a given process.

When used in combination with the <exec> task, it allows processed to be spawned for a certain duration or task, and then stopped.

Parameters

AttributeTypeDescriptionRequired
pidint The unique identifier of the process to stop. True
machinestring The name of the computer on the network on which the process must be stopped. The default is the local computer. False
timeoutint The maximum amount of time to wait until the process is stopped, expressed in milliseconds. The default is to wait indefinitely. False
failonerrorbool Determines if task failure stops the build, or is just reported. The default is true. False
ifbool If true then the task will be executed; otherwise, skipped. The default is true. False
unlessbool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbosebool Determines whether the task should report detailed build log messages. The default is false. False

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.93.5521.0)