public class CommitCommand extends BasicCommand
Constructor and Description |
---|
CommitCommand()
Construct a CommitCommand.
|
Modifier and Type | Method and Description |
---|---|
Builder |
createBuilder(EventManager eventMan)
Method that is called while the command is being executed.
|
void |
execute(ClientServices client,
EventManager em)
Execute the command.
|
java.lang.String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
java.lang.String |
getCVSCommand()
This method returns how the command would looklike when typed on the command line.
|
java.lang.String |
getLogMessageFromFile()
Returns the filename for the file that defines the message.
|
java.lang.String |
getMessage()
Returns the commit message.
|
java.lang.String |
getOptString()
Returns a String defining which options are available for this command.
|
java.lang.String |
getToRevisionOrBranch()
Getter for property toRevisionOrBranch.
|
boolean |
isForceCommit()
Indicates whether the commit should be forced even if there are no
changes.
|
boolean |
isNoModuleProgram()
Returns whether no module program should be executed on the server.
|
void |
resetCVSCommand()
Resets all switches in the command.
|
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
Takes the arguments and sets the command.
|
void |
setForceCommit(boolean forceCommit)
Sets whether the commit should be forced even if there are no changes.
|
void |
setLogMessageFromFile(java.lang.String logMessageFromFile)
Sets the filename for the file that defines the message.
|
void |
setMessage(java.lang.String message)
Sets the commit message.
|
void |
setNoModuleProgram(boolean noModuleProgram)
Sets whether no module program should run on the server
|
void |
setToRevisionOrBranch(java.lang.String toRevBranch)
Setter for property toRevisionOrBranch.
|
getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, setFiles, setRecursive
commandTerminated, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, hasFailed, moduleExpanded, setDisplayName
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public boolean isForceCommit()
public void setForceCommit(boolean forceCommit)
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
public java.lang.String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, java.lang.String optArg)
setCVSCommand
in class Command
public java.lang.String getOptString()
getOptString
in class Command
public Builder createBuilder(EventManager eventMan)
createBuilder
in class BuildableCommand
public java.lang.String getLogMessageFromFile()
public void setLogMessageFromFile(java.lang.String logMessageFromFile)
public boolean isNoModuleProgram()
public void setNoModuleProgram(boolean noModuleProgram)
public java.lang.String getToRevisionOrBranch()
public void setToRevisionOrBranch(java.lang.String toRevBranch)
toRevisionOrBranch
- New value of property toRevisionOrBranch.public void resetCVSCommand()
resetCVSCommand
in class Command
public java.lang.String getCVSArguments()
getCVSArguments
in class Command