org.apache.tools.ant.taskdefs.optional.clearcase
public class CCRmtype extends ClearCase
The following attributes are interpreted:
Attribute | Values | Required |
---|---|---|
typekind | The kind of type to create. Valid types are: attype attribute type brtype branch type eltype element type hltype hyperlink type lbtype label type trtype trigger type |
Yes |
typename | The name of the type to remove | Yes |
vob | Name of the VOB | No |
ignore | Used with trigger types only. Forces removal of trigger type even if a pre-operation trigger would prevent its removal | No |
rmall | Removes all instances of a type and the type object itself | No |
comment | Specify a comment. Only one of comment or cfile may be used. | No |
commentfile | Specify a file containing a comment. Only one of comment or cfile may be used. | No |
failonerr | Throw an exception if the command fails. Default is true | No |
Field Summary | |
---|---|
static String | FLAG_COMMENT
-c flag -- comment to attach to the file |
static String | FLAG_COMMENTFILE
-cfile flag -- file containing a comment to attach to the file |
static String | FLAG_FORCE
-force flag -- suppresses confirmation prompts |
static String | FLAG_IGNORE
-ignore flag -- ignore pre-trigger operations when removing a trigger type |
static String | FLAG_NOCOMMENT
-nc flag -- no comment is specified |
static String | FLAG_RMALL
-rmall flag -- removes all instances of a type and the type object itself |
Method Summary | |
---|---|
void | execute()
Executes the task.
|
String | getComment()
Get comment string
|
String | getCommentFile()
Get comment file
|
boolean | getIgnore()
Get ignore flag status
|
boolean | getRmAll()
Get rmall flag status
|
String | getTypeKind()
Get type-kind string
|
String | getTypeName()
Get type-name string
|
String | getVOB()
Get VOB name
|
void | setComment(String comment)
Set comment string
|
void | setCommentFile(String cfile)
Set comment file
|
void | setIgnore(boolean ignore)
Set the ignore flag
|
void | setRmAll(boolean rmall)
Set rmall flag
|
void | setTypeKind(String tk)
Set type-kind string
|
void | setTypeName(String tn)
Set type-name string
|
void | setVOB(String vob)
Set the VOB name
|
Builds a command line to execute cleartool and then calls Exec's run method to execute the command line.
Throws: BuildException if the command fails and failonerr is set to true
Returns: String containing the comment
Returns: String containing the path to the comment file
Returns: boolean containing status of ignore flag
Returns: boolean containing status of rmall flag
Returns: String containing the type-kind
Returns: String containing the type-name
Returns: String containing VOB name
Parameters: comment the comment string
Parameters: cfile the path to the comment file
Parameters: ignore the status to set the flag to
Parameters: rmall the status to set the flag to
Parameters: tk the type-kind string
Parameters: tn the type-name string
Parameters: vob the VOB name