NAntContrib Help Task Reference <p4info> | v0.92-alpha1 |
[This is preliminary documentation and subject to change.]
Returns information from the "p4 info" command back into variables for use within the build process.
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 |
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}" />