public class ImportCommand extends BuildableCommand
builder
localDirectory
Constructor and Description |
---|
ImportCommand() |
Modifier and Type | Method and Description |
---|---|
void |
addIgnoredFile(String ignoredFileName)
Add a file name that is to be ignored by the import.
|
void |
addWrapper(String filenamePattern,
KeywordSubstitutionOptions keywordSubstitutionOptions) |
void |
addWrapper(StringPattern filenamePattern,
KeywordSubstitutionOptions keywordSubstitutionOptions) |
Builder |
createBuilder(EventManager eventManager)
Creates the ImportBuilder.
|
void |
execute(ClientServices client,
EventManager eventManager)
Executes thiz command using the set options.
|
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.
|
List<String> |
getIgnoreFiles()
Get a list of files that are ignored by import.
|
String |
getImportDirectory() |
KeywordSubstitutionOptions |
getKeywordSubstitutionOptions()
Returns the keyword substitution option.
|
String |
getLogMessage()
Returns the log message.
|
String |
getModule()
Returns the module (the in-repository path, where the files should be
stored.
|
String |
getOptString()
Returns a String that defines which options are available for this
particular command.
|
String |
getReleaseTag()
Returns the release tag.
|
String |
getVendorBranch()
Returns the vendor branch.
|
String |
getVendorTag()
Returns the vendor tag.
|
Map<StringPattern,KeywordSubstitutionOptions> |
getWrappers()
Returns a map with all wrappers.
|
boolean |
isUseFileModifTime()
Tells, whether the file modification time is to be used as the time of
the import.
|
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 |
setImportDirectory(String directory)
Pints to directoty to import.
|
void |
setKeywordSubstitutionOptions(KeywordSubstitutionOptions keywordSubstitutionOptions)
Sets the keywords substitution option.
|
void |
setLogMessage(String logMessage)
Sets the log message.
|
void |
setModule(String module)
Sets the module (the in-repository path, where the files should be
stored).
|
void |
setReleaseTag(String releaseTag)
Sets the necessary release tag.
|
void |
setUseFileModifTime(boolean useFileModifTime)
Sets whether the file modification time is to be used as the time of the
import.
|
void |
setVendorBranch(String vendorBranch)
Sets the vendor branch.
|
void |
setVendorTag(String vendorTag)
Sets the necessary vendor tag.
|
void |
setWrappers(Map<StringPattern,KeywordSubstitutionOptions> wrapperMap)
Compliant method to addWrapper.
|
commandTerminated, isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory
public void addWrapper(String filenamePattern, KeywordSubstitutionOptions keywordSubstitutionOptions)
public void addWrapper(StringPattern filenamePattern, KeywordSubstitutionOptions keywordSubstitutionOptions)
public void setWrappers(Map<StringPattern,KeywordSubstitutionOptions> wrapperMap)
public Map<StringPattern,KeywordSubstitutionOptions> getWrappers()
public KeywordSubstitutionOptions getKeywordSubstitutionOptions()
public void setKeywordSubstitutionOptions(KeywordSubstitutionOptions keywordSubstitutionOptions)
public String getReleaseTag()
public void setReleaseTag(String releaseTag)
public String getLogMessage()
public void setLogMessage(String logMessage)
public String getModule()
public void setModule(String module)
public void setImportDirectory(String directory)
public String getImportDirectory()
public String getVendorBranch()
public void setVendorBranch(String vendorBranch)
public String getVendorTag()
public void setVendorTag(String vendorTag)
public boolean isUseFileModifTime()
public void setUseFileModifTime(boolean useFileModifTime)
public void addIgnoredFile(String ignoredFileName)
public void execute(ClientServices client, EventManager eventManager) throws CommandException, AuthenticationException
execute
in class BuildableCommand
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
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()
Command
getOptString
in class Command
public Builder createBuilder(EventManager eventManager)
createBuilder
in class BuildableCommand
Copyright © 2016. All rights reserved.