org.apache.tools.ant.taskdefs.optional.perforce

Class P4Label

public class P4Label extends P4Base

Creates a new Perforce label and set contents to reflect current client file revisions. Label name defaults to AntLabel if none set. Example Usage:
   <P4Label name="MyLabel-${TSTAMP}-${DSTAMP}" desc="Auto Build Label" />
 

UNKNOWN: category="scm"

Field Summary
protected Stringdesc
protected Stringlock
protected Stringname
Method Summary
voidexecute()
do the work
voidsetDesc(String desc)
Label Description; optional
voidsetLock(String lock)
when set to "locked", Perforce will lock the label once created; optional.
voidsetName(String name)
The name of the label; optional, default "AntLabel"

Field Detail

desc

protected String desc

lock

protected String lock

name

protected String name

Method Detail

execute

public void execute()
do the work

Throws: BuildException if failonerror has been set to true and Perforce fails

setDesc

public void setDesc(String desc)
Label Description; optional

Parameters: desc description of the label

setLock

public void setLock(String lock)
when set to "locked", Perforce will lock the label once created; optional.

Parameters: lock only admissible value "locked"

setName

public void setName(String name)
The name of the label; optional, default "AntLabel"

Parameters: name the name of the label

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.