public class DiffCommand extends BasicCommand
Modifier and Type | Field and Description |
---|---|
protected EventManager |
eventManager
The event manager to use
|
clientServices, files, requests
builder
localDirectory
Constructor and Description |
---|
DiffCommand()
Construct a new diff 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 eventMan)
Create a builder for this command.
|
void |
execute(ClientServices client,
EventManager em)
Execute a command
|
String |
getBeforeDate1()
Getter for property beforeDate.
|
String |
getBeforeDate2()
Getter for property beforeDate2.
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
This method returns how the command would looklike when typed on the
command line.
|
String |
getKeywordSubst()
Getter for property keywordSubst.
|
String |
getOptString()
String returned by this method defines which options are available for
this particular command
|
String |
getRevision1()
Getter for property firstRevision.
|
String |
getRevision2()
Getter for property secondRevision.
|
boolean |
isContextDiff()
equals to the -c switch of cvs Getter for property contextDiff.
|
boolean |
isIgnoreAllWhitespace()
true if all the whitespace differences should be ignored.
|
boolean |
isIgnoreBlankLines()
Getter for property ignoreBlankLines.
|
boolean |
isIgnoreCase()
Getter for property ignoreCase.
|
boolean |
isIgnoreSpaceChange()
Getter for property ignoreSpaceChange.
|
boolean |
isUnifiedDiff()
equals to the -u switch of cvs Getter for property unifiedDiff.
|
void |
resetCVSCommand()
resets all switches in the command.
|
void |
setBeforeDate1(String beforeDate)
Setter for property beforeDate.
|
void |
setBeforeDate2(String beforeDate2)
Setter for property beforeDate2.
|
void |
setContextDiff(boolean contextDiff)
equals to the -c switch of cvs Setter for property contextDiff.
|
boolean |
setCVSCommand(char opt,
String optArg)
takes the arguments and sets the command.
|
void |
setIgnoreAllWhitespace(boolean ignoreAllWhitespace)
Setter for property ignoreAllWhitespace.
|
void |
setIgnoreBlankLines(boolean ignoreBlankLines)
Setter for property ignoreBlankLines.
|
void |
setIgnoreCase(boolean ignoreCase)
Setter for property ignoreCase.
|
void |
setIgnoreSpaceChange(boolean ignoreSpaceChange)
Setter for property ignoreSpaceChange.
|
void |
setKeywordSubst(String keywordSubst)
Setter for property keywordSubst.
|
void |
setRevision1(String firstRevision)
Setter for property firstRevision.
|
void |
setRevision2(String secondRevision)
Setter for property secondRevision.
|
void |
setUnifiedDiff(boolean unifiedDiff)
equals to the -u switch of cvs.
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive
isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory
protected EventManager eventManager
public Builder createBuilder(EventManager eventMan)
createBuilder
in class BuildableCommand
eventMan
- the event manager used to receive events.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 commandAuthenticationException
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class BuildableCommand
public String getBeforeDate1()
public void setBeforeDate1(String beforeDate)
beforeDate
- New value of property beforeDate.public String getRevision1()
public void setRevision1(String firstRevision)
firstRevision
- New value of property firstRevision.public String getRevision2()
public void setRevision2(String secondRevision)
secondRevision
- New value of property secondRevision.public String getBeforeDate2()
public void setBeforeDate2(String beforeDate2)
beforeDate2
- New value of property beforeDate2.public String getKeywordSubst()
public void setKeywordSubst(String keywordSubst)
keywordSubst
- New value of property keywordSubst.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
public boolean isIgnoreAllWhitespace()
public void setIgnoreAllWhitespace(boolean ignoreAllWhitespace)
ignoreAllWhitespace
- New value of property ignoreAllWhitespace.public boolean isIgnoreBlankLines()
public void setIgnoreBlankLines(boolean ignoreBlankLines)
ignoreBlankLines
- New value of property ignoreBlankLines.public boolean isIgnoreCase()
public void setIgnoreCase(boolean ignoreCase)
ignoreCase
- New value of property ignoreCase.public boolean isIgnoreSpaceChange()
public void setIgnoreSpaceChange(boolean ignoreSpaceChange)
ignoreSpaceChange
- New value of property ignoreSpaceChange.public boolean isContextDiff()
public void setContextDiff(boolean contextDiff)
contextDiff
- New value of property contextDiff.public boolean isUnifiedDiff()
public void setUnifiedDiff(boolean unifiedDiff)
unifiedDiff
- New value of property unifiedDiff.Copyright © 2016. All rights reserved.