Name

p4counter

Synopsis

Gets and sets a Perforce counter value.

Attributes

client (1.3, 1.4, String, N)

Specifies the p4 -c option. Defaults to the value of the p4.client property, if set.

name (1.4, String, Y)

The counter name. If this is the only specified attribute, the task prints the value of the counter to standard output.

port (1.3, 1.4, String, N)

Specifies the p4 -p option. Defaults to the value of the p4.port property, if set.

property (1.4, String, *)

The property to set with the retrieved counter value.

user (1.3, 1.4, String, N)

Specifies the p4 -u option. Defaults to the value of the p4.user property, if set.

value (1.4, int, *)

When specified, set the counter to this value.

view (1.3, 1.4, String, N)

The client, branch, or label view this command operates on.

You cannot set both property and value, since you are retrieving a counter value when property is specified, and setting a counter value when value is specified.

Content

None.

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.