|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.command.Command
org.netbeans.lib.cvsclient.command.BuildableCommand
org.netbeans.lib.cvsclient.command.BasicCommand
org.netbeans.lib.cvsclient.command.commit.CommitCommand
public class CommitCommand
The command to commit any changes that have been made.
Field Summary |
---|
Fields inherited from class org.netbeans.lib.cvsclient.command.BasicCommand |
---|
clientServices, files, requests |
Fields inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
builder |
Fields inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
localDirectory |
Constructor Summary | |
---|---|
CommitCommand()
Construct a CommitCommand. |
Method Summary | |
---|---|
protected void |
addArgumentRequests()
Add the argument requests. |
protected void |
addRequestsForDirectory(java.io.File directory)
Adds the appropriate requests for a given directory. |
protected void |
addRequestsForFile(java.io.File file)
Add the appropriate requests for a single file. |
Builder |
createBuilder(EventManager eventMan)
Method that is called while the command is being executed. |
protected boolean |
doesCheckFileTime()
Should return true if unchanged files should not be sent to server. |
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. |
Methods inherited from class org.netbeans.lib.cvsclient.command.BasicCommand |
---|
addArgumentRequest, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, appendFileArguments, assumeLocalPathWhenUnspecified, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive |
Methods inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
commandTerminated, isBuilderSet, messageSent, messageSent, setBuilder |
Methods inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommitCommand()
Method Detail |
---|
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public boolean isForceCommit()
public void setForceCommit(boolean forceCommit)
protected void addRequestsForDirectory(java.io.File directory) throws java.io.IOException
addRequestsForDirectory
in class BasicCommand
directory
- the directory to send requests for
java.io.IOException
- if an error occurs constructing the requestsprotected void addRequestsForFile(java.io.File file) throws java.io.IOException
addRequestsForFile
in class BasicCommand
file
- the file to send requests for
java.io.IOException
- if an error occurs constructing the requestsprotected boolean doesCheckFileTime()
sendEntryAndModifiedRequests
.
doesCheckFileTime
in class BasicCommand
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 requests
CommandException
- if an error occurs executing the command
AuthenticationException
protected void addArgumentRequests()
BasicCommand
addArgumentRequests
in class BasicCommand
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |