public class ServerCommandLineParser extends ApplicationCommandLineParser
ServerConfig
instance as result.Modifier and Type | Field and Description |
---|---|
protected AbstractBooleanOption |
optShutdown |
protected OptionServerWorkspaceDir |
optWorkspaceDir |
optApplicationName
espritVersion, 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, setDefaultApplicationName
addOption, 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, removeOption
protected 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
ApplicationCommandLineParser
ApplicationConfig
derivation which contains
all data extracted from the command line.createConfig
in class ApplicationCommandLineParser
java.lang.Exception
public java.io.File getWorkspaceDir()
public boolean isShutdown()
Copyright © 2013 EsprIT-Systems. All Rights Reserved.