Handles packages/modules retrieved from a Perforce repository.
Attribute | Description | Required |
localpath | The local path of the file/directory to write file(s) to. | Yes |
user | Specifies the user name, overriding the value of $P4USER, $USER, and $USERNAME in the environment. | No |
port | Specifies the server's listen address, overriding the value of $P4PORT in the environment and the default (perforce:1666). | No |
version | The revision number of the file being extracted. | No |
date | Get files as of this date. Either [yyyy/mm/dd] or [yyyy/mm/dd:hh:mm:ss]. Note that [yyyy/mm/dd] means [yyyy/mm/dd:00:00:00], so if you want to include all events on that day refer to the next day. | No |
label | A label from which to check out files. | No |
force | "[true|false]". Forces resynchronization even if the client already has the file, and clobbers writable files. This flag doesn't affect open files. | No, default "false" |
change | Gets the file(s) as they were when a specified change number was applied. | No |
<perforce localpath="//path/to/source/..." force="true" change="4513" />
syncs the files in the source directory that are in the Perforce repository, as of change number 4513, overwriting any modified files in the current source tree is needed.
<perforce localpath="//path/to/source/..." />
Syncs with the latest version of the file in the repository.