Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.clearcase

public Class CCUnCheckout

extends ClearCase
Class Inheritance
Imports
org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.taskdefs.Execute, org.apache.tools.ant.types.Commandline

Performs ClearCase UnCheckout command.

The following attributes are interpreted:

Task attributes
Attribute Values Required
viewpath Path to the ClearCase view file or directory that the command will operate on No
keepcopy Specifies whether to keep a copy of the file with a .keep extension or not No
failonerr Throw an exception if the command fails. Default is true No

Field Summary

Modifier and TypeField and Description
public static final String
FLAG_KEEPCOPY

-keep flag -- keep a copy of the file with .keep extension

public static final String
FLAG_RM

-rm flag -- remove the copy of the file

private boolean
Inherited from org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase:
COMMAND_CHECKINCOMMAND_CHECKOUTCOMMAND_LOCKCOMMAND_LSCOCOMMAND_MKATTRCOMMAND_MKBLCOMMAND_MKDIRCOMMAND_MKELEMCOMMAND_MKLABELCOMMAND_MKLBTYPECOMMAND_RMTYPECOMMAND_UNCHECKOUTCOMMAND_UNLOCKCOMMAND_UPDATE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
checkOptions(Commandline cmd)

Check the command line options.

public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Executes the task.
public boolean

Returns:

boolean containing status of keep flag
getKeepCopy
()

Get keepcopy flag status

public void
setKeepCopy(boolean
the status to set the flag to
keep
)

If true, keep a copy of the file with a .keep extension.

Inherited from org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase:
getClearToolCommandgetFailOnErrgetObjSelectgetViewPathgetViewPathBasenamerunrunSrunSsetClearToolDirsetFailOnErrsetObjSelectsetViewPath

Field Detail

FLAG_KEEPCOPYback to summary
public static final String FLAG_KEEPCOPY

-keep flag -- keep a copy of the file with .keep extension

FLAG_RMback to summary
public static final String FLAG_RM

-rm flag -- remove the copy of the file

mKeepback to summary
private boolean mKeep

Constructor Detail

CCUnCheckoutback to summary
public CCUnCheckout()

Method Detail

checkOptionsback to summary
private void checkOptions(Commandline cmd)

Check the command line options.

executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Executes the task.

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

Annotations
@Override
Exceptions
BuildException:
if the command fails and failonerr is set to true
getKeepCopyback to summary
public boolean getKeepCopy()

Get keepcopy flag status

Returns:boolean

boolean containing status of keep flag

setKeepCopyback to summary
public void setKeepCopy(boolean keep)

If true, keep a copy of the file with a .keep extension.

Parameters
keep:boolean

the status to set the flag to