org.apache.tools.ant.taskdefs.optional.clearcase

Class CCUnCheckout


public class CCUnCheckout
extends ClearCase

Performs ClearCase UnCheckout command.

The following attributes are interpreted:

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

static String
FLAG_KEEPCOPY
-keep flag -- keep a copy of the file with .keep extension
static String
FLAG_RM
-rm flag -- remove the copy of the file

Fields inherited from class org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase

COMMAND_CHECKIN, COMMAND_CHECKOUT, COMMAND_LOCK, COMMAND_LSCO, COMMAND_MKATTR, COMMAND_MKBL, COMMAND_MKDIR, COMMAND_MKELEM, COMMAND_MKLABEL, COMMAND_MKLBTYPE, COMMAND_RMTYPE, COMMAND_UNCHECKOUT, COMMAND_UNLOCK, COMMAND_UPDATE

Fields inherited from class org.apache.tools.ant.Task

description, location, target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

void
execute()
Executes the task.
boolean
getKeepCopy()
Get keepcopy flag status
void
setKeepCopy(boolean keep)
If true, keep a copy of the file with a .keep extension.

Methods inherited from class org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase

getClearToolCommand, getFailOnErr, getObjSelect, getViewPath, getViewPathBasename, run, runS, setClearToolDir, setFailOnErr, setObjSelect, setViewPath

Methods inherited from class org.apache.tools.ant.Task

execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Field Details

FLAG_KEEPCOPY

public static final String FLAG_KEEPCOPY
-keep flag -- keep a copy of the file with .keep extension


FLAG_RM

public static final String FLAG_RM
-rm flag -- remove the copy of the file

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.

Overrides:
execute in interface Task

Throws:
BuildException - if the command fails and failonerr is set to true


getKeepCopy

public boolean getKeepCopy()
Get keepcopy flag status

Returns:
boolean containing status of keep flag


setKeepCopy

public void setKeepCopy(boolean keep)
If true, keep a copy of the file with a .keep extension.

Parameters:
keep - the status to set the flag to


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.