Summary
Immediately stops a given process.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks - Base Types
-
- Task
graph BT
Type-->Base0["Task"]
Type["KillTask"]
class Type type-node
Syntax
[TaskName("kill")]
public class KillTask : Task
Examples
Starts a server and a client process on the local computer, and stops the server process once the client process has finished executing.
<exec program="server.exe" pidproperty="server.pid" spawn="true" />
<exec program="client.exe" />
<kill pid="${server.pid}" />
Remarks
When used in combination with the
ExecTask
, it allows
processed to be spawned for a certain duration or task, and then
stopped.
Attributes
Type | Description |
---|---|
TaskName |
Properties
Name | Value | Summary |
---|---|---|
Machine | string |
The name of the computer on the network on which the process must
be stopped. The default is the local computer.
|
ProcessId | int |
The unique identifier of the process to stop.
|
TimeOut | int |
The maximum amount of time to wait until the process is stopped,
expressed in milliseconds. The default is to wait indefinitely.
|
Methods
Name | Value | Summary |
---|---|---|
ExecuteTask |
void |