The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| typename | Name of the label type to create | Yes |
| vob | Name of the VOB | No |
| replace | Replace an existing label definition of the same type | No |
| global | Either global or ordinary can be specified, not both. Creates a label type that is global to the VOB or to VOBs that use this VOB | No |
| ordinary | Either global or ordinary can be specified, not both. Creates a label type that can be used only in the current VOB. Default | No |
| pbranch | Allows the label type to be used once per branch in a given element's version tree | No |
| shared | Sets the way mastership is checked by ClearCase. See ClearCase documentation for details | 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 |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FLAG_COMMENT
-c flag -- comment to attach to the file |
| public static final String | FLAG_COMMENTFILE
-cfile flag -- file containing a comment to attach to the file |
| public static final String | FLAG_GLOBAL
-global flag -- creates a label type that is global to the VOB or to VOBs that use this VOB |
| public static final String | FLAG_NOCOMMENT
-nc flag -- no comment is specified |
| public static final String | FLAG_ORDINARY
-ordinary flag -- creates a label type that can be used only in the current VOB |
| public static final String | FLAG_PBRANCH
-pbranch flag -- allows label type to be used once per branch |
| public static final String | FLAG_REPLACE
-replace flag -- replace existing label definition of the same type |
| public static final String | FLAG_SHARED
-shared flag -- sets the way mastership is checked by ClearCase |
| private String | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public String | |
| private void | getCommentCommand(Commandline
containing the command line string with or
without the comment flag and string appended cmd)Get the 'comment' command |
| public String | |
| private void | getCommentFileCommand(Commandline
containing the command line string with or
without the commentfile flag and file appended cmd)Get the 'commentfile' command |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String | |
| private String | Returns: the 'type-name-specifier' command if the attribute was specified, otherwise an empty stringGet the type-name specifier |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| FLAG_COMMENT | back to summary |
|---|---|
| public static final String FLAG_COMMENT -c flag -- comment to attach to the file | |
| FLAG_COMMENTFILE | back to summary |
|---|---|
| public static final String FLAG_COMMENTFILE -cfile flag -- file containing a comment to attach to the file | |
| FLAG_GLOBAL | back to summary |
|---|---|
| public static final String FLAG_GLOBAL -global flag -- creates a label type that is global to the VOB or to VOBs that use this VOB | |
| FLAG_NOCOMMENT | back to summary |
|---|---|
| public static final String FLAG_NOCOMMENT -nc flag -- no comment is specified | |
| FLAG_ORDINARY | back to summary |
|---|---|
| public static final String FLAG_ORDINARY -ordinary flag -- creates a label type that can be used only in the current VOB | |
| FLAG_PBRANCH | back to summary |
|---|---|
| public static final String FLAG_PBRANCH -pbranch flag -- allows label type to be used once per branch | |
| FLAG_REPLACE | back to summary |
|---|---|
| public static final String FLAG_REPLACE -replace flag -- replace existing label definition of the same type | |
| FLAG_SHARED | back to summary |
|---|---|
| public static final String FLAG_SHARED -shared flag -- sets the way mastership is checked by ClearCase | |
| mCfile | back to summary |
|---|---|
| private String mCfile | |
| mComment | back to summary |
|---|---|
| private String mComment | |
| mGlobal | back to summary |
|---|---|
| private boolean mGlobal | |
| mOrdinary | back to summary |
|---|---|
| private boolean mOrdinary | |
| mPbranch | back to summary |
|---|---|
| private boolean mPbranch | |
| mReplace | back to summary |
|---|---|
| private boolean mReplace | |
| mShared | back to summary |
|---|---|
| private boolean mShared | |
| mTypeName | back to summary |
|---|---|
| private String mTypeName | |
| mVOB | back to summary |
|---|---|
| private String mVOB | |
| CCMklbtype | back to summary |
|---|---|
| public CCMklbtype() | |
| checkOptions | back to summary |
|---|---|
| private void checkOptions(Commandline cmd) Check the command line options. | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Executes the task. Builds a command line to execute cleartool and then calls Exec's run method to execute the command line.
| |
| getComment | back to summary |
|---|---|
| public String getComment() Get comment string
| |
| getCommentCommand | back to summary |
|---|---|
| private void getCommentCommand(Commandline cmd) Get the 'comment' command
| |
| getCommentFile | back to summary |
|---|---|
| public String getCommentFile() Get comment file
| |
| getCommentFileCommand | back to summary |
|---|---|
| private void getCommentFileCommand(Commandline cmd) Get the 'commentfile' command
| |
| getGlobal | back to summary |
|---|---|
| public boolean getGlobal() Get global flag status
| |
| getOrdinary | back to summary |
|---|---|
| public boolean getOrdinary() Get ordinary flag status
| |
| getPbranch | back to summary |
|---|---|
| public boolean getPbranch() Get pbranch flag status
| |
| getReplace | back to summary |
|---|---|
| public boolean getReplace() Get replace flag status
| |
| getShared | back to summary |
|---|---|
| public boolean getShared() Get shared flag status
| |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Get type-name string
| |
| getTypeSpecifier | back to summary |
|---|---|
| private String getTypeSpecifier() Get the type-name specifier
| |
| getVOB | back to summary |
|---|---|
| public String getVOB() Get VOB name
| |
| setComment | back to summary |
|---|---|
| public void setComment(String comment) Set comment string
| |
| setCommentFile | back to summary |
|---|---|
| public void setCommentFile(String cfile) Set comment file
| |
| setGlobal | back to summary |
|---|---|
| public void setGlobal(boolean glob) Set the global flag
| |
| setOrdinary | back to summary |
|---|---|
| public void setOrdinary(boolean ordinary) Set the ordinary flag
| |
| setPbranch | back to summary |
|---|---|
| public void setPbranch(boolean pbranch) Set the pbranch flag
| |
| setReplace | back to summary |
|---|---|
| public void setReplace(boolean repl) Set the replace flag
| |
| setShared | back to summary |
|---|---|
| public void setShared(boolean shared) Set the shared flag
| |
| setTypeName | back to summary |
|---|---|
| public void setTypeName(String tn) Set type-name string
| |
| setVOB | back to summary |
|---|---|
| public void setVOB(String vob) Set the VOB name
| |