public class RlogCommand extends BasicCommand
clientServices, files, requests
builder
localDirectory
Constructor and Description |
---|
RlogCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
assumeLocalPathWhenUnspecified()
Don't send status of local files prior to executing command, as it's not
needed.
|
void |
clearModules()
clears the list of modules for export.
|
Builder |
createBuilder(EventManager eventMan)
Create a builder for this command.
|
void |
execute(ClientServices client,
EventManager em)
Execute this command.
|
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 |
getDateFilter()
Getter for property dateFilter, equals the command-line CVS switch "-d".
|
String[] |
getModules() |
String |
getOptString()
String returned by this method defines which options are available for
this particular command
|
String |
getRevisionFilter()
Getter for property revisionFilter, equals the command-line CVS switch
"-r".
|
String |
getStateFilter()
Getter for property stateFilter, equals the command-line CVS switch "-s".
|
String |
getUserFilter()
Getter for property userFilter, equals the command-line CVS switch "-w".
|
boolean |
isDefaultBranch()
Getter for property defaultBranch, equals the command-line CVS switch
"-b".
|
boolean |
isHeaderAndDescOnly()
Getter for property headerAndDescOnly, equals the command-line CVS switch
"-t".
|
boolean |
isHeaderOnly()
Getter for property headerOnly, equals the command-line CVS switch "-h".
|
boolean |
isNoTags()
Getter for property noTags, equals the command-line CVS switch "-N".
|
boolean |
isSuppressHeader()
Getter for property suppressHeader, equals the command-line CVS switch
"-S".
|
void |
resetCVSCommand()
Resets all switches in the command to the default behaviour.
|
boolean |
setCVSCommand(char opt,
String optArg)
Takes the arguments and sets the command.
|
void |
setDateFilter(String dateFilter)
Setter for property dateFilter, equals the command-line CVS switch "-d".
|
void |
setDefaultBranch(boolean defaultBranch)
Setter for property defaultBranch, equals the command-line CVS switch
"-b".
|
void |
setHeaderAndDescOnly(boolean headerAndDescOnly)
Setter for property headerAndDescOnly, equals the command-line CVS switch
"-t".
|
void |
setHeaderOnly(boolean headerOnly)
Setter for property headerOnly, equals the command-line CVS switch "-h".
|
void |
setModule(String module)
Set the modules to export.
|
void |
setModules(String[] modules)
Set the modules to export.
|
void |
setNoTags(boolean noTags)
Setter for property noTags, equals the command-line CVS switch "-N".
|
void |
setRevisionFilter(String revisionFilter)
Setter for property revisionFilter, equals the command-line CVS switch
"-r".
|
void |
setStateFilter(String stateFilter)
Setter for property stateFilter, equals the command-line CVS switch "-s".
|
void |
setSuppressHeader(boolean suppressHeader)
Setter for property headerOnly, equals the command-line CVS switch "-S".
|
void |
setUserFilter(String userFilter)
Setter for property userFilter, equals the command-line CVS switch "-w".
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive
commandTerminated, isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory
public void setModule(String module)
theModules
- the names of the modules to exportpublic void clearModules()
public void setModules(String[] modules)
theModules
- the names of the modules to exportpublic String[] getModules()
public boolean isDefaultBranch()
public void setDefaultBranch(boolean defaultBranch)
defaultBranch
- New value of property defaultBranch.public String getDateFilter()
public void setDateFilter(String dateFilter)
dateFilter
- New value of property dateFilter.public boolean isHeaderOnly()
public void setHeaderOnly(boolean headerOnly)
headerOnly
- New value of property headerOnly.public boolean isSuppressHeader()
public void setSuppressHeader(boolean suppressHeader)
suppressHeader
- New value of property suppressHeader.public boolean isNoTags()
public void setNoTags(boolean noTags)
noTags
- New value of property noTags.public String getRevisionFilter()
public void setRevisionFilter(String revisionFilter)
revisionFilter
- New value of property revisionFilter. empty string means
latest revision of default branch.public String getStateFilter()
public void setStateFilter(String stateFilter)
stateFilter
- New value of property stateFilter.public String getUserFilter()
public void setUserFilter(String userFilter)
userFilter
- New value of property userFilter.public boolean isHeaderAndDescOnly()
public void setHeaderAndDescOnly(boolean headerAndDescOnly)
headerAndDescOnly
- New value of property headerAndDescOnly.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
protected boolean assumeLocalPathWhenUnspecified()
assumeLocalPathWhenUnspecified
in class BasicCommand
public String getCVSCommand()
Command
getCVSCommand
in class Command
public String getCVSArguments()
Command
getCVSArguments
in class Command
public boolean setCVSCommand(char opt, String optArg)
Command
setCVSCommand
in class Command
public void resetCVSCommand()
Command
resetCVSCommand
in class Command
public String getOptString()
getOptString
in class Command
public Builder createBuilder(EventManager eventMan)
createBuilder
in class BuildableCommand
eventMan
- the event manager used to receive events.Copyright © 2016. All rights reserved.