From e13d922745cda9a00544c2010e21cafce218e709 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig Handles packages/modules retrieved from a Perforce repository. No No No 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. Syncs with the latest version of the file in the repository.Perforce
+
+Description
+
+Parameters
+
+
+
+
+
+
+ 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.
+
+
+
+ port
+ Specifies the server's listen address, overriding the
+ value of $P4PORT in the environment and the default (perforce:1666).
+
+
+
+ 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.
+
+ Examples
+
+ <perforce localpath="//path/to/source/..."
+ force="true"
+ change="4513"
+ />
+
+ <perforce localpath="//path/to/source/..." />
+
+htdocs/manual/ChangeLog.txt
.
- * >p4sync dir="src" - * force="no" - * date="2000/04/01" - * time="14:15:29" - * label="labelname" - * revision="#have" - * viewonly="true" - * /> - *- * Where: - * 1. "dir" is mandatory, the rest are optional; - * 2. If you specify time, you have to specify date. - * 2a. If you specify date but not time, midnight is implied. - * 3. You cannot specify more than one of (date, label, revision). - * 4. Any "sync" error is considered a fatal error, and a BuildException is returned. + *
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. You cannot + * specify more than one of (date, label, revision).
+ * + *<perforce localpath="//path/to/source/..." />+ * + *
Syncs with the latest version of the file in the repository.
*/ public class P4sync extends Exec { private String p4user;