public class RemoveCommand extends BasicCommand
clientServices, files, requests
builder
localDirectory
Constructor and Description |
---|
RemoveCommand() |
Modifier and Type | Method and Description |
---|---|
Builder |
createBuilder(EventManager eventMan)
Method that is called while the command is being executed.
|
boolean |
doesIgnoreLocallyExistingFiles()
Deprecated.
|
void |
execute(ClientServices client,
EventManager em)
Executes this command.
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
This method returns how the command would looks like when typed on the
command line.
|
String |
getOptString()
String returned by this method defines which options are available for
this particular command
|
boolean |
isDeleteBeforeRemove()
Returns true if the local files will be deleted automatically.
|
boolean |
isIgnoreLocallyExistingFiles()
Returns true to indicate that locally existing files are treated as they
would not exist.
|
void |
resetCVSCommand()
resets all switches in the command.
|
protected void |
sendEntryAndModifiedRequests(Entry entry,
File file)
Send an Entry followed by a Modified or Unchanged request based on
whether the file has been untouched on the local machine.
|
boolean |
setCVSCommand(char opt,
String optArg)
Takes the arguments and sets the command.
|
void |
setDeleteBeforeRemove(boolean deleteBeforeRemove)
Sets whether the local files will be deleted before.
|
void |
setIgnoreLocallyExistingFiles(boolean ignoreLocallyExistingFiles)
Sets whether locally existing files will be treated as they were deleted
before.
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, setFiles, setRecursive
commandTerminated, isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory
public boolean isDeleteBeforeRemove()
public void setDeleteBeforeRemove(boolean deleteBeforeRemove)
@Deprecated public boolean doesIgnoreLocallyExistingFiles()
public boolean isIgnoreLocallyExistingFiles()
public void setIgnoreLocallyExistingFiles(boolean ignoreLocallyExistingFiles)
public Builder createBuilder(EventManager eventMan)
createBuilder
in class BuildableCommand
public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
execute
in class BasicCommand
client
- 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
protected void sendEntryAndModifiedRequests(Entry entry, File file)
BasicCommand
sendEntryAndModifiedRequests
in class BasicCommand
entry
- the entry for the filefile
- the file in questionpublic String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, String optArg)
setCVSCommand
in class Command
public String getOptString()
getOptString
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public String getCVSArguments()
getCVSArguments
in class Command
Copyright © 2016. All rights reserved.