ClearCaseMkElem Class

Summary

Creates elements in a ClearCase VOB.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks.ClearCase
Base Types
graph BT Type-->Base0["ClearCaseBase"] click Base0 "/api/NAnt.Contrib.Tasks.ClearCase/ClearCaseBase" Base0-->Base1["Core.Tasks.ExternalProgramBase"] Type["ClearCaseMkElem"] class Type type-node

Syntax

[TaskName("ccmkelem")]
public class ClearCaseMkElem : ClearCaseBase

Examples

Performs a ClearCase mkelem on the file c:/views/viewdir/afile with element type text_file. It checks in the file after creation and adds Some comment text as a comment.

<ccmkelem viewpath="c:/views/viewdir/afile"
    eltype="text_file"
    checkin="true"
    comment="Some comment text"/>

Remarks

This task uses the cleartool mkelem command to create ClearCase elements.

Attributes

Type Description
TaskName

Properties

Name Value Summary
Checkin bool
Checkin element after creation. Default is false.
CommandSpecificArguments string
This is an override used by the base class to get command specific args.
Comment string
Specify a comment. Only one of NAnt.Contrib.Tasks.ClearCase.ClearCaseMkElem.Comment or NAnt.Contrib.Tasks.ClearCase.ClearCaseMkElem.CommentFile may be used.
CommentFile FileInfo
Specify a file containing a comment. Only one of NAnt.Contrib.Tasks.ClearCase.ClearCaseMkElem.Comment or NAnt.Contrib.Tasks.ClearCase.ClearCaseMkElem.CommentFile may be used.
ElType string
Element type to use during element creation.
Master bool
Assign mastership of the main branch to the current site. Default is false.
MkPath bool
Create elements from the view-private parent directories. Default is false.
NoCheckout bool
Perform a checkout after element creation. Default is false.
NoWarn bool
If true, warning will be suppressed. The default is false.
PreserveTime bool
If true, the modification time will be preserved. Default is false.
ProgramArguments string
Overrides the base class.
Inherited from ClearCaseBase
ViewPath FileInfo
Path to the ClearCase view file or directory that the command will operate on.

Methods

Name Value Summary
ExecuteTask() void
Execute the perforce command assembled by subclasses.
Inherited from ClearCaseBase