public class RtagCommand extends RepositoryCommand
clientServices, expandedModules, modules, requests
builder
localDirectory
Constructor and Description |
---|
RtagCommand()
Construct a new tag command.
|
Modifier and Type | Method and Description |
---|---|
void |
commandTerminated(TerminationEvent e)
Called when server responses with "ok" or "error", (when the command
finishes).
|
Builder |
createBuilder(EventManager eventManager)
Creates the TagBuilder.
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
This method returns how the tag command would looklike when typed on the
command line.
|
String |
getOptString()
String returned by this method defines which options are available for
this command.
|
String |
getTag()
Returns the tag that should be added or deleted.
|
String |
getTagByDate()
Returns the latest date of a revision to be tagged.
|
String |
getTagByRevision()
Sets the latest date of a revision to be tagged.
|
boolean |
isClearFromRemoved()
Returns true if the tag from removed files is cleared.
|
boolean |
isDeleteTag()
Returns true if the tag should be deleted (otherwise added).
|
boolean |
isMakeBranchTag()
Returns true if the tag should be a branch tag.
|
boolean |
isMatchHeadIfRevisionNotFound() |
boolean |
isNoExecTagProgram() |
boolean |
isOverrideExistingTag()
Returns true to indicate that existing tag will be overridden.
|
protected void |
postExpansionExecute(ClientServices client,
EventManager eventManager)
Execute the command.
|
void |
resetCVSCommand()
Resets all switches in the command.
|
void |
setClearFromRemoved(boolean clearFromRemoved)
Clear tag from removed files
|
boolean |
setCVSCommand(char opt,
String optArg)
Takes the arguments and sets the command.
|
void |
setDeleteTag(boolean deleteTag)
Sets whether the tag should be deleted (true) or added (false).
|
void |
setMakeBranchTag(boolean makeBranchTag)
Sets whether the tag should be a branch tag.
|
void |
setMatchHeadIfRevisionNotFound(boolean matchHeadIfRevisionNotFound) |
void |
setNoExecTagProgram(boolean noExecTagProgram) |
void |
setOverrideExistingTag(boolean overrideExistingTag)
Sets whether existing tags should be overridden.
|
void |
setTag(String tag)
Sets the tag that should be added or deleted.
|
void |
setTagByDate(String tagDate)
Sets the latest date of a revision to be tagged.
|
void |
setTagByRevision(String tagRevision)
Sets the latest date of a revision to be tagged.
|
addArgumentRequest, addArgumentRequests, addModule, addRequest, addRequestForWorkingDirectory, appendModuleArguments, clearModules, execute, getModules, isRecursive, moduleExpanded, setModules, setRecursive
isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, setDisplayName, setLocalDirectory
public Builder createBuilder(EventManager eventManager)
createBuilder
in class BuildableCommand
eventManager
- the event manager used to received cvs eventspublic boolean isClearFromRemoved()
public void setClearFromRemoved(boolean clearFromRemoved)
public boolean isDeleteTag()
public void setDeleteTag(boolean deleteTag)
public boolean isMakeBranchTag()
public void setMakeBranchTag(boolean makeBranchTag)
public boolean isOverrideExistingTag()
public void setOverrideExistingTag(boolean overrideExistingTag)
public boolean isMatchHeadIfRevisionNotFound()
public void setMatchHeadIfRevisionNotFound(boolean matchHeadIfRevisionNotFound)
public boolean isNoExecTagProgram()
public void setNoExecTagProgram(boolean noExecTagProgram)
public String getTag()
public void setTag(String tag)
public String getTagByDate()
public void setTagByDate(String tagDate)
tagDate
- New value of property tagDate.public String getTagByRevision()
public void setTagByRevision(String tagRevision)
tagRevision
- New value of property tagRevision.protected void postExpansionExecute(ClientServices client, EventManager eventManager) throws CommandException, AuthenticationException
postExpansionExecute
in class RepositoryCommand
client
- the client services object that provides any necessary
services to this command, including the ability to actually
process all the requests.CommandException
AuthenticationException
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class BuildableCommand
public 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.