P4Info Class

Summary

Returns information from the "p4 info" command back into variables for use within the build process.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks.Perforce
Base Types
  • Task
graph BT Type-->Base0["Task"] Type["P4Info"] class Type type-node

Syntax

[TaskName("p4info")]
public class P4Info : Task

Examples

Fill the variables using the task.

    <p4info user="myuser" client="myclient" host="myhost" root="myroot" />
<echo message="User: ${myuser} - Client: ${myclient} - Host: ${myhost} - Root: ${myroot}" />

Attributes

Type Description
TaskName

Properties

Name Value Summary
Client string
The name of the property to store the p4 client name in.
Host string
The name of the property to store the p4 host name in.
Root string
The name of the property to store the p4 client root in.
User string
The name of the property to store the p4 user name in.

Methods

Name Value Summary
ExecuteTask() void