public class P4Label extends P4Base
<P4Label name="MyLabel-${TSTAMP}-${DSTAMP}" desc="Auto Build Label" />
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
desc |
protected java.lang.String |
lock |
protected java.lang.String |
name |
failOnError, P4Client, P4CmdOpts, P4Opts, P4Port, P4User, P4View, shell, utildescription, location, project| Constructor and Description |
|---|
P4Label() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
do the work
|
void |
setDesc(java.lang.String desc)
Label Description; optional
|
void |
setLock(java.lang.String lock)
when set to "locked", Perforce will lock the label once created; optional.
|
void |
setName(java.lang.String name)
The name of the label; optional, default "AntLabel"
|
execP4Command, execP4Command, getErrorMessage, getInError, init, setClient, setCmdopts, setErrorMessage, setFailonerror, setGlobalopts, setInError, setPort, setUser, setViewbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectprotected java.lang.String name
protected java.lang.String desc
protected java.lang.String lock
public void setName(java.lang.String name)
name - the name of the labelpublic void setDesc(java.lang.String desc)
desc - description of the labelpublic void setLock(java.lang.String lock)
lock - only admissible value "locked"public void execute()
throws BuildException
execute in class TaskBuildException - if failonerror has been set to true and Perforce fails