<p4set>

[This is preliminary documentation and subject to change.]

Set registry variables that perforce uses.

Note: the environment variables that p4 uses will be set, but will not be validated.

Parameters

AttributeTypeDescriptionRequired
clientstring The p4 client spec to use. The default is the current client. 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
portstring The p4 server and port to connect to. The default is "perforce:1666". False
scriptbool Prepends a descriptive field (for example, text:, info:, error:, exit:) to each line of output produced by a Perforce command. This is most often used when scripting. The default is false. False
timeoutint The maximum amount of time the application is allowed to execute, expressed in milliseconds. Defaults to no time-out. False
unlessbool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
userstring The p4 username. The default is the current user. False
verbosebool Determines whether the task should report detailed build log messages. The default is false. False
viewstring The client, branch or label view to operate upon. The default is "//...". False

Framework-configurable parameters

AttributeTypeDescriptionRequired
useruntimeenginebool Specifies whether the external program should be executed using a runtime engine, if configured. The default is false. False

Nested Elements:

<arg>

The command-line arguments for the external program.

Contains a collection of Argument elements.

</arg>

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.85.1793.0)