# <p4info>

Returns information from the "p4 info" command back into variables for use within the build process.

### Parameters

Attribute | Type | Description | Required
--- | --- | --- | ---
client | string | The name of the property to store the p4 client name in. | True
host | string | The name of the property to store the p4 host name in. | True
root | string | The name of the property to store the p4 client root in. | True
user | string | The name of the property to store the p4 user name in. | True
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False
unless | bool | Opposite of `if`. If false then the task will be executed; otherwise, skipped. The default is false. | False
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False

### 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}" />

### Requirements

Assembly: NAnt.Contrib.Tasks (0.85.2479.0)