public abstract class BasicCommand extends BuildableCommand
| Constructor and Description |
|---|
BasicCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ClientServices client,
EventManager em)
Execute a command.
|
java.io.File |
getFileEndingWith(java.lang.String ending) |
java.io.File[] |
getFiles()
Get the files and/or directories specified for this command to operate
on.
|
boolean |
getRecursive()
Deprecated.
use isRecursive instead
|
java.io.File |
getXthFile(int index)
Get a single file from the "files" list. returns only files, not directories.
|
boolean |
isRecursive()
Gets the value of the recursive option.
|
void |
setFiles(java.io.File[] theFiles)
Set the files and/or directories on which to execute the command.
|
void |
setRecursive(boolean recursive)
Sets the value of the recursive option.
|
commandTerminated, createBuilder, messageSent, messageSent, setBuilderclone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getCVSArguments, getCVSCommand, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getOptString, getRelativeToLocalPathInUnixStyle, hasFailed, moduleExpanded, resetCVSCommand, setCVSCommand, setDisplayNamepublic boolean getRecursive()
public boolean isRecursive()
public void setRecursive(boolean recursive)
recursive - true if the command should recurse, false otherwisepublic void setFiles(java.io.File[] theFiles)
null) is to use the directory in which the command was executed (see how directories are treated, below)
theFiles - the files to operate on. May be null to indicate that the
local directory specified in the client should be used. Full, absolute
canonical pathnames must be supplied.public java.io.File[] getFiles()
public java.io.File getXthFile(int index)
index - the index of the file in the list.public java.io.File getFileEndingWith(java.lang.String ending)
ending - - the ending part of the file's pathname.. path separator is cvs's default '/'public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
update,
statusetc.)
execute in class BuildableCommandclient - the client services object that provides any necessary
services to this command, including the ability to actually process
all the requestsCommandException - if an error occurs executing the commandAuthenticationException