public class GlobalOptions extends Object implements Cloneable, Serializable
cvs -n update -dP-n is a global options but -dP are options specific to the update command.
Constructor and Description |
---|
GlobalOptions() |
Modifier and Type | Method and Description |
---|---|
void |
clearCvsVariables()
Clears the list of cvs internal enviroment variables.
|
Object |
clone()
This method just calls the Object.clone() and makes it public.
|
List<Request> |
createRequestList()
Creates a list of requests.
|
int |
getCompressionLevel()
Getter for property compressionLevel.
|
String |
getCVSCommand()
Equals to the Command.getCVSCommand() functionality.
|
String |
getCVSRoot()
Get the CVS root
|
String[] |
getCvsVariables() |
String |
getEditor()
Getter for property editor.
|
File[] |
getExclusions()
Returns list of non-modifiable files/folders.
|
String |
getOptString()
Returns a String that defines which options are available for global
options.
|
File |
getTempDir()
Getter for property tempDir.
|
boolean |
isCheckedOutFilesReadOnly()
Are checked out files read only.
|
boolean |
isDoNoChanges()
Returns whether no changes should be done to the files.
|
boolean |
isExcluded(File file)
Tests whether the file is not modifiable as set by
setExclusions(java.io.File[]) . |
boolean |
isIgnoreCvsrc()
Getter for property ignoreCvsrc.
|
boolean |
isModeratelyQuiet()
Getter for property moderatelyQuiet.
|
boolean |
isNoHistoryLogging()
Getter for property noHistoryLogging.
|
boolean |
isShowHelp()
Getter for property showHelp.
|
boolean |
isShowVersion()
Getter for property showVersion.
|
boolean |
isTraceExecution()
Getter for property traceExecution.
|
boolean |
isUseGzip()
Get whether to use Gzip
|
boolean |
isVeryQuiet()
Getter for property veryQuiet.
|
void |
resetCVSCommand()
Resets all switches in the command to the default behaviour.
|
void |
setCheckedOutFilesReadOnly(boolean readOnly)
Set whether checked out files are read only.
|
void |
setCompressionLevel(int compressionLevel)
Setter for property compressionLevel.
|
boolean |
setCVSCommand(char opt,
String optArg)
EQUALS to Command.setCVSCommand()
|
void |
setCVSRoot(String cvsRoot)
Set the CVS root
|
void |
setCvsVariable(String variable)
Adds one cvs internal enviroment variable.
|
void |
setCvsVariables(String[] variables)
Sets the cvs internal enviroment variables.
|
void |
setDoNoChanges(boolean doNoChanges)
Sets whether no changes should be done to the files.
|
void |
setEditor(String editor)
Setter for property editor.
|
void |
setExclusions(File[] exclusions)
Sets list of non-modifiable files/folders.
|
void |
setIgnoreCvsrc(boolean ignoreCvsrc)
Setter for property ignoreCvsrc.
|
void |
setModeratelyQuiet(boolean moderatelyQuiet)
Setter for property moderatelyQuiet.
|
void |
setNoHistoryLogging(boolean noHistoryLogging)
Setter for property noHistoryLogging.
|
void |
setShowHelp(boolean showHelp)
Setter for property showHelp.
|
void |
setShowVersion(boolean showVersion)
Setter for property showVersion.
|
void |
setTempDir(File tempDir)
Setter for property tempDir.
|
void |
setTraceExecution(boolean traceExecution)
Setter for property traceExecution.
|
void |
setUseGzip(boolean useGzip)
Set whether to use Gzip for file transmission/reception
|
void |
setVeryQuiet(boolean veryQuiet)
Setter for property veryQuiet.
|
public void setExclusions(File[] exclusions)
exclusions
- array of non-modifiable files/folderspublic File[] getExclusions()
public boolean isExcluded(File file)
setExclusions(java.io.File[])
.file
- file to testpublic List<Request> createRequestList()
public String getOptString()
public boolean setCVSCommand(char opt, String optArg)
public void resetCVSCommand()
public String getCVSCommand()
public void setCvsVariable(String variable)
variable
- The format is NAME=VALUE.public void clearCvsVariables()
public void setCvsVariables(String[] variables)
variables
- array of strings in format "KEY=VALUE".public String[] getCvsVariables()
public void setDoNoChanges(boolean doNoChanges)
public boolean isDoNoChanges()
public boolean isCheckedOutFilesReadOnly()
public void setCheckedOutFilesReadOnly(boolean readOnly)
readOnly
- true for readonly, false for read/write (default)public String getCVSRoot()
public void setCVSRoot(String cvsRoot)
cvsRoot
- CVS root to usepublic void setUseGzip(boolean useGzip)
useGzip
- true if gzip should be used, false otherwisepublic boolean isUseGzip()
public int getCompressionLevel()
public void setCompressionLevel(int compressionLevel)
compressionLevel
- New value of property compressionLevel.public boolean isNoHistoryLogging()
public void setNoHistoryLogging(boolean noHistoryLogging)
noHistoryLogging
- New value of property noHistoryLogging.public boolean isModeratelyQuiet()
public void setModeratelyQuiet(boolean moderatelyQuiet)
moderatelyQuiet
- New value of property moderatelyQuiet.public boolean isVeryQuiet()
public void setVeryQuiet(boolean veryQuiet)
veryQuiet
- New value of property veryQuiet.public boolean isTraceExecution()
public void setTraceExecution(boolean traceExecution)
traceExecution
- New value of property traceExecution.public boolean isShowHelp()
public void setShowHelp(boolean showHelp)
showHelp
- New value of property showHelp.public boolean isShowVersion()
public void setShowVersion(boolean showVersion)
showVersion
- New value of property showVersion.public boolean isIgnoreCvsrc()
public void setIgnoreCvsrc(boolean ignoreCvsrc)
ignoreCvsrc
- New value of property ignoreCvsrc.public File getTempDir()
public void setTempDir(File tempDir)
tempDir
- New value of property tempDir.public String getEditor()
public void setEditor(String editor)
editor
- New value of property editor.Copyright © 2016. All rights reserved.