next up previous contents index
Next: Examples Up: Perforce Tasks Previous: The Tasks   Contents   Index

General P4 Properties

Each p4 task requires a number of settings, either through build-wide properties, individual attributes or environment variables. These are

Property Attribute Env Var Description Default
p4.port port P4PORT The p4d server and port to connect to perforce:1666
p4.client client P4CLIENT The p4 client spec to use The logged in username
p4.user user P4USER The p4 username The logged in username
- view - The client, branch or label view to operate upon. See the p4 user guide for more info. //...

Your local installation of Perforce may require other settings (e.g. P4PASSWD, P4CONFIG). At the moment, these can only be set outside of Ant, as environment variables.

Additionally, you may also specify the following attributes:

Attribute Description Required
failonerror Specifies whether to stop the build (true|yes|on) or keep going (false|no|off) if an error is returned from the p4 command. No; defaults to true.


next up previous contents index
Next: Examples Up: Perforce Tasks Previous: The Tasks   Contents   Index
Andrew Marlow 2003-07-08