public class ServerCommandLineParser extends ApplicationCommandLineParser
ServerConfig instance as result.| Modifier and Type | Field and Description |
|---|---|
protected AbstractBooleanOption |
optShutdown |
protected OptionServerWorkspaceDir |
optWorkspaceDir |
optApplicationNameespritVersion, optDebug, optDemo, optHelp, optLocale, optLogDir, optLogToFile, optNoConsole, optTest, optVerbose, optVersion| Constructor and Description |
|---|
ServerCommandLineParser(java.lang.Class mainClass,
java.lang.String... args) |
| Modifier and Type | Method and Description |
|---|---|
protected ServerConfig |
createConfig()
May be overridden to return a specific
ApplicationConfig derivation which contains
all data extracted from the command line. |
java.io.File |
getWorkspaceDir() |
boolean |
isShutdown() |
void |
setWorkspaceEnvVariableName(java.lang.String envVarName)
Defines the env-variable which is used to configure the workspace directory
|
getApplicationName, getConfig, isPrintVersionOnly, setDefaultApplicationNameaddOption, addOption, addSoftwareVersion, checkDependencies, createHelpText, createHelpText, createOptionList, createSyntaxLine, ensureParsed, fetchDefinedOptionFor, findDefinedOptionFor, getArgument, getArgumentCount, getArguments, getCustomVersion, getEspritVersion, getLogDir, getMainClass, getSoftwareVersions, getStartLogLevel, handleParsingError, hasArguments, isDebug, isDemoMode, isExitAfterParsing, isLogToFile, isNoConsoleLog, isParsed, isTestMode, isVerbose, parse, removeOption, removeOptionprotected final OptionServerWorkspaceDir optWorkspaceDir
protected final AbstractBooleanOption optShutdown
public ServerCommandLineParser(java.lang.Class mainClass,
java.lang.String... args)
public void setWorkspaceEnvVariableName(java.lang.String envVarName)
protected ServerConfig createConfig() throws java.lang.Exception
ApplicationCommandLineParserApplicationConfig derivation which contains
all data extracted from the command line.createConfig in class ApplicationCommandLineParserjava.lang.Exceptionpublic java.io.File getWorkspaceDir()
public boolean isShutdown()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.