|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.optional.perforce.P4Base org.apache.tools.ant.taskdefs.optional.perforce.P4Labelsync
public class P4Labelsync
This method syncs an existing Perforce label against the Perforce client or against a set of files/revisions. Example Usage:
<p4labelsync name="MyLabel-${TSTAMP}-${DSTAMP}" view="//depot/...#head;//depot2/file1#25" />
Field Summary | |
---|---|
protected java.lang.String |
name
|
Fields inherited from class org.apache.tools.ant.taskdefs.optional.perforce.P4Base |
---|
failOnError, P4Client, P4CmdOpts, P4Opts, P4Port, P4User, P4View, shell, util |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
P4Labelsync()
|
Method Summary | |
---|---|
void |
execute()
do the work |
boolean |
isAdd()
-a flag of p4 labelsync - preserve files which exist in the label, but not in the current view |
boolean |
isDelete()
-d flag of p4 labelsync; indicates an intention of deleting from the label the files specified in the view |
boolean |
isSimulationmode()
-n flag of p4 labelsync - display changes without actually doing them |
void |
setAdd(boolean add)
-a flag of p4 labelsync - preserve files which exist in the label, but not in the current view |
void |
setDelete(boolean delete)
-d flag of p4 labelsync; indicates an intention of deleting from the label the files specified in the view |
void |
setName(java.lang.String name)
The name of the label; optional, default "AntLabel" |
void |
setSimulationmode(boolean simulationmode)
-n flag of p4 labelsync - display changes without actually doing them |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.perforce.P4Base |
---|
execP4Command, execP4Command, getErrorMessage, getInError, init, setClient, setCmdopts, setErrorMessage, setFailonerror, setGlobalopts, setInError, setPort, setUser, setView |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
Constructor Detail |
---|
public P4Labelsync()
Method Detail |
---|
public boolean isAdd()
public void setAdd(boolean add)
add
- if set to true the task will not remove any files from the label
only add files which were not there previously or update these where the revision has changed
the add attribute is the -a flag of p4 labelsyncpublic boolean isDelete()
public void setDelete(boolean delete)
delete
- indicates intention of deleting from the label
the files specified in the viewpublic void setName(java.lang.String name)
name
- of the labelpublic boolean isSimulationmode()
public void setSimulationmode(boolean simulationmode)
simulationmode
- display changes without actually doing thempublic void execute() throws BuildException
execute
in class Task
BuildException
- if the label name is not supplied
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |