Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » optional » perforce » [javadoc | source]
org.apache.tools.ant.taskdefs.optional.perforce
public class: P4Labelsync [javadoc | source]
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

All Implemented Interfaces:
    Cloneable

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  String name     
Fields inherited from org.apache.tools.ant.taskdefs.optional.perforce.P4Base:
util,  shell,  P4Port,  P4Client,  P4User,  P4View,  failOnError,  P4Opts,  P4CmdOpts
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.taskdefs.optional.perforce.P4Labelsync Summary:
execute,   isAdd,   isDelete,   isSimulationmode,   setAdd,   setDelete,   setName,   setSimulationmode
Methods from org.apache.tools.ant.taskdefs.optional.perforce.P4Base:
execP4Command,   execP4Command,   getErrorMessage,   getInError,   init,   setClient,   setCmdopts,   setErrorMessage,   setFailonerror,   setGlobalopts,   setInError,   setPort,   setUser,   setView
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.optional.perforce.P4Labelsync Detail:
 public  void execute() throws BuildException 
    do the work
 public boolean isAdd() 
    -a flag of p4 labelsync - preserve files which exist in the label, but not in the current view
 public boolean isDelete() 
    -d flag of p4 labelsync; indicates an intention of deleting from the label the files specified in the view
 public boolean isSimulationmode() 
    -n flag of p4 labelsync - display changes without actually doing them
 public  void setAdd(boolean add) 
    -a flag of p4 labelsync - preserve files which exist in the label, but not in the current view
 public  void setDelete(boolean delete) 
    -d flag of p4 labelsync; indicates an intention of deleting from the label the files specified in the view
 public  void setName(String name) 
    The name of the label; optional, default "AntLabel"
 public  void setSimulationmode(boolean simulationmode) 
    -n flag of p4 labelsync - display changes without actually doing them