Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » taskdefs » optional » starteam » [javadoc | source]
org.apache.tools.ant.taskdefs.optional.starteam
public class: StarTeamCheckout [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.optional.starteam.StarTeamTask
            org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask
               org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckout

All Implemented Interfaces:
    Cloneable

Checks out files from a StarTeam project. It also creates all working directories on the local directory if appropriate. Ant Usage:
<taskdef name="starteamcheckout"
classname="org.apache.tools.ant.taskdefs.StarTeamCheckout"/>
<starteamcheckout username="BuildMaster" password="ant" starteamFolder="Source"
starteamurl="servername:portnum/project/view"
createworkingdirectories="true"/>
Fields inherited from org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask:
DEFAULT_INCLUDESETTING,  DEFAULT_EXCLUDESETTING
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.starteam.StarTeamCheckout Summary:
createSnapshotView,   getUseRepositoryTimeStamp,   logOperationDescription,   setAsOfDate,   setAsOfDateFormat,   setConvertEOL,   setCreateWorkingDirs,   setDeleteUncontrolled,   setLabel,   setLocked,   setUnlocked,   setUseRepositoryTimeStamp,   testPreconditions,   visit
Methods from org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask:
_setAsOfDate,   _setAsOfDateFormat,   _setLabel,   execute,   getAsOfDate,   getExcludes,   getFullRepositoryPath,   getIDofLabelInUse,   getIncludes,   getLabel,   getLabelID,   getLabelInUse,   getRootLocalFolder,   getRootStarteamFolder,   getViewConfiguredByDate,   isForced,   isPreloadFileInformation,   isRecursive,   isUsingRevisionLabel,   isUsingViewLabel,   logAsOfDate,   logExcludes,   logIncludes,   logLabel,   logOperationDescription,   matchPatterns,   setExcludes,   setForced,   setIncludes,   setPreloadFileInformation,   setRecursive,   setRootLocalFolder,   setRootStarteamFolder,   shouldProcess,   testPreconditions,   visit
Methods from org.apache.tools.ant.taskdefs.optional.starteam.StarTeamTask:
createSnapshotView,   disconnectFromServer,   getPassword,   getProjectname,   getServer,   getServername,   getServerport,   getTypeNames,   getURL,   getUserName,   getUserName,   getViewURL,   getViewname,   openView,   setPassword,   setProjectname,   setServername,   setServerport,   setURL,   setUserName,   setViewname
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:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckout Detail:
 protected View createSnapshotView(View raw) throws BuildException 
    Override of base-class abstract function creates an appropriately configured view for checkouts - either the current view or a view from this.label or the raw view itself in the case of a revision label.
 public boolean getUseRepositoryTimeStamp() 
    returns the value of the useRepositoryTimestamp member
 protected  void logOperationDescription(Folder starteamrootFolder,
    File targetrootFolder) 
    extenders should emit to the log an entry describing the parameters that will be used by this operation.
 public  void setAsOfDate(String asOfDateParam) 
    List files, dates, and statuses as of this date; optional. If not specified, the most recent version of each file will be listed.
 public  void setAsOfDateFormat(String asOfDateFormat) 
    Date Format with which asOfDate parameter to be parsed; optional. Must be a SimpleDateFormat compatible string. If not specified, and asOfDateParam is specified, parse will use ISO8601 datetime and date formats.
 public  void setConvertEOL(boolean value) 
    Set whether or not files should be checked out using the local machine's EOL convention. Optional, defaults to true.
 public  void setCreateWorkingDirs(boolean value) 
    flag (defaults to true) to create all directories that are in the Starteam repository even if they are empty.
 public  void setDeleteUncontrolled(boolean value) 
    Whether or not all local files not in StarTeam should be deleted. Optional, defaults to true.
 public  void setLabel(String label) 
    Sets the label StarTeam is to use for checkout; defaults to the most recent file. The label must exist in starteam or an exception will be thrown.
 public  void setLocked(boolean v) throws BuildException 
    Set to do a locked checkout; optional default is false.
 public  void setUnlocked(boolean v) throws BuildException 
    Set to do an unlocked checkout. Default is false;
 public  void setUseRepositoryTimeStamp(boolean useRepositoryTimeStamp) 
    sets the useRepositoryTimestmp member.
 protected  void testPreconditions() throws BuildException 
    Implements base-class abstract function to define tests for any preconditons required by the task.
 protected  void visit(Folder starteamFolder,
    File targetFolder) throws BuildException 
    Implements base-class abstract function to perform the checkout operation on the files in each folder of the tree.