All Implemented Interfaces:

public class CCLock extends ClearCase
Performs a ClearCase Lock command.

The following attributes are interpreted:

Task attributes
Attribute Values Required
replace Specifies replacing an existing lock No
nusers Specifies user(s) who can still modify the object/pname No
obsolete Specifies that the object/pname should be marked obsolete No
comment Specifies how to populate comments fields No
pname Specifies the pathname to be locked. No
objselect This variable is obsolete. Should use objsel instead. No
objsel Specifies the object(s) to be unlocked. No
failonerr Throw an exception if the command fails. Default is true No
  • Field Details

  • Constructor Details

    • CCLock

      public CCLock()
  • Method Details

    • execute

      public void execute() throws BuildException
      Executes the task.

      Builds a command line to execute cleartool and then calls Exec's run method to execute the command line.

      execute in class Task
      BuildException - if the command fails and failonerr is set to true
    • setReplace

      public void setReplace(boolean replace)
      If true, replace an existing lock.
      replace - the status to set the flag to
    • getReplace

      public boolean getReplace()
      Get replace flag status
      boolean containing status of replace flag
    • setObsolete

      public void setObsolete(boolean obsolete)
      If true, mark object as obsolete.
      obsolete - the status to set the flag to
    • getObsolete

      public boolean getObsolete()
      Get obsolete flag status
      boolean containing status of obsolete flag
    • setNusers

      public void setNusers(String nusers)
      Sets the users who may continue to edit the object while it is locked.
      nusers - users excluded from lock
    • getNusers

      public String getNusers()
      Get nusers list
      String containing the list of users excluded from lock
    • setComment

      public void setComment(String comment)
      Sets how comments should be written for the event record(s)
      comment - comment method to use
    • getComment

      public String getComment()
      Get comment method
      String containing the desired comment method
    • setPname

      public void setPname(String pname)
      Sets the pathname to be locked
      pname - pathname to be locked
    • getPname

      public String getPname()
      Get the pathname to be locked
      String containing the pathname to be locked
    • setObjSel

      public void setObjSel(String objsel)
      Sets the object(s) to be locked
      objsel - objects to be locked
      ant 1.6.1
    • setObjselect

      public void setObjselect(String objselect)
      Sets the object(s) to be locked
      objselect - objects to be locked
    • getObjselect

      public String getObjselect()
      Get list of objects to be locked
      String containing the objects to be locked