|
||||||||||
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.update.UpdateCommand
public class UpdateCommand
The Update command. Updates files that have previously been checked out from the repository with the checkout command. Modified files are not overwritten.
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 | |
---|---|
UpdateCommand()
Construct a new update command. |
Method Summary | |
---|---|
Builder |
createBuilder(EventManager eventManager)
Method that is called while the command is being executed. |
java.io.File |
createTempFile(java.lang.String filename)
Method that creates a temporary file. |
void |
execute(ClientServices client,
EventManager eventManager)
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. |
KeywordSubstitutionOptions |
getKeywordSubst()
Getter for property keywordSubst. |
java.lang.String |
getMergeRevision1()
Getter for property mergeRevision1. |
java.lang.String |
getMergeRevision2()
Getter for property mergeRevision2. |
java.lang.String |
getOptString()
String returned by this method defines which options are available for this particular command |
java.lang.String |
getUpdateByDate()
Getter for property updateByDate. |
java.lang.String |
getUpdateByRevision()
Getter for property updateByRevision. |
boolean |
isBuildDirectories()
Returns whether to build directories. |
boolean |
isCleanCopy()
Returns whether to get a clean copy from the server. |
boolean |
isPipeToOutput()
Getter for property pipeToOutput. |
boolean |
isPruneDirectories()
Returns whether to prune directories. |
boolean |
isResetStickyOnes()
Getter for property resetStickyOnes. |
boolean |
isUseHeadIfNotFound()
Getter for property useHeadIfNotFound. |
void |
messageSent(MessageEvent e)
Called when the server wants to send a message to be displayed to the user. |
void |
resetCVSCommand()
Resets all switches in the command. |
protected void |
sendEntryAndModifiedRequests(Entry entry,
java.io.File file)
If getCleanCopy() returns true, the files will be treated
as not existing. |
void |
setBuildDirectories(boolean buildDirectories)
Set whether to build directories. |
void |
setCleanCopy(boolean cleanCopy)
Sets whether to get a clean copy from the server. |
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
Takes the arguments and by parsing them, sets the command. |
void |
setKeywordSubst(KeywordSubstitutionOptions keywordSubst)
Setter for property keywordSubst. |
void |
setMergeRevision1(java.lang.String mergeRevision1)
Setter for property mergeRevision1. |
void |
setMergeRevision2(java.lang.String mergeRevision2)
Setter for property mergeRevision2. |
void |
setPipeToOutput(boolean pipeToOutput)
Setter for property pipeToOutput. |
void |
setPruneDirectories(boolean pruneDirectories)
Set whether to prune directories. |
void |
setResetStickyOnes(boolean resetStickyOnes)
Setter for property resetStickyOnes. |
void |
setUpdateByDate(java.lang.String updateByDate)
Setter for property updateByDate. |
void |
setUpdateByRevision(java.lang.String updateByRevision)
Setter for property updateByRevision. |
void |
setUseHeadIfNotFound(boolean useHeadIfNotFound)
Setter for property useHeadIfNotFound. |
Methods inherited from class org.netbeans.lib.cvsclient.command.BasicCommand |
---|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, setFiles, setRecursive |
Methods inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
commandTerminated, isBuilderSet, 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 UpdateCommand()
Method Detail |
---|
public Builder createBuilder(EventManager eventManager)
createBuilder
in class BuildableCommand
protected void sendEntryAndModifiedRequests(Entry entry, java.io.File file)
getCleanCopy()
returns true, the files will be treated
as not existing.
sendEntryAndModifiedRequests
in class BasicCommand
entry
- the entry for the filefile
- the file in questionpublic void setBuildDirectories(boolean buildDirectories)
public boolean isBuildDirectories()
public void setCleanCopy(boolean cleanCopy)
public boolean isCleanCopy()
public void setPruneDirectories(boolean pruneDirectories)
public boolean isPruneDirectories()
public void execute(ClientServices client, EventManager eventManager) 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
public boolean isPipeToOutput()
public void setPipeToOutput(boolean pipeToOutput)
pipeToOutput
- New value of property pipeToOutput.public boolean isResetStickyOnes()
public void setResetStickyOnes(boolean resetStickyOnes)
resetStickyOnes
- New value of property resetStickyOnes.public boolean isUseHeadIfNotFound()
public void setUseHeadIfNotFound(boolean useHeadIfNotFound)
useHeadIfNotFound
- New value of property useHeadIfNotFound.public java.lang.String getUpdateByDate()
public void setUpdateByDate(java.lang.String updateByDate)
updateByDate
- New value of property updateByDate.public java.lang.String getUpdateByRevision()
public void setUpdateByRevision(java.lang.String updateByRevision)
updateByRevision
- New value of property updateByRevision.public KeywordSubstitutionOptions getKeywordSubst()
public void setKeywordSubst(KeywordSubstitutionOptions keywordSubst)
keywordSubst
- New value of property keywordSubst.public java.io.File createTempFile(java.lang.String filename) throws java.io.IOException
createTempFile
in interface TemporaryFileCreator
java.io.IOException
public java.lang.String getCVSCommand()
getCVSCommand
in class Command
public java.lang.String getCVSArguments()
getCVSArguments
in class Command
public boolean setCVSCommand(char opt, java.lang.String optArg)
setCVSCommand
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public void messageSent(MessageEvent e)
messageSent
in interface CVSListener
messageSent
in class BuildableCommand
e
- the eventpublic java.lang.String getOptString()
getOptString
in class Command
public java.lang.String getMergeRevision1()
public void setMergeRevision1(java.lang.String mergeRevision1)
mergeRevision1
- New value of property mergeRevision1.public java.lang.String getMergeRevision2()
public void setMergeRevision2(java.lang.String mergeRevision2)
mergeRevision2
- New value of property mergeRevision2.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |