Package org.eclipse.jetty.start
Class StartArgs
java.lang.Object
org.eclipse.jetty.start.StartArgs
The Arguments required to start Jetty.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dumpJvmArgs
(PrintStream out) void
void
expandEnvironments
(List<Module> activeModules) void
expandModules
(List<Module> activeModules) Build up the Classpath and XML file references based on enabled Module list.void
Expand any command line added--libs
lib references.getEnvironment
(String envName) getFiles()
Return ordered Map of JVM arguments to Source (locations)getMainArgs
(Set<String> parts) The list of selected Modules to enable based on configuration obtained fromstart.d/*.ini
,start.ini
, and command line.getSources
(String module) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isDryRun()
boolean
isExec()
boolean
isHelp()
boolean
isJPMS()
boolean
boolean
boolean
boolean
boolean
isRun()
boolean
boolean
boolean
boolean
void
parse
(ConfigSources sources) parse
(StartEnvironment environment, String arg, String source) Parse a single line of argument.protected Props.Prop
processSystemProperty
(String key, String value, String source) void
setAllModules
(Modules allModules) void
setProperty
(StartEnvironment environment, String key, String value, String source) void
setRun
(boolean run) toString()
-
Field Details
-
VERSION
-
ALL_PARTS
-
ARG_PARTS
-
ARG_ALLOW_INSECURE_HTTP_DOWNLOADS
- See Also:
-
-
Constructor Details
-
StartArgs
-
-
Method Details
-
expandEnvironments
- Throws:
IOException
-
getJettyEnvironment
-
getEnvironments
-
getEnvironment
-
dumpJavaEnvironment
-
dumpJvmArgs
-
dumpSystemProperties
-
expandSystemProperties
public void expandSystemProperties()Expand any command line added--libs
lib references. -
expandModules
Build up the Classpath and XML file references based on enabled Module list.- Parameters:
activeModules
- the active (selected) modules- Throws:
IOException
- if unable to expand the modules
-
getStartModules
-
getAllModules
-
getSelectedModules
The list of selected Modules to enable based on configuration obtained from
start.d/*.ini
,start.ini
, and command line.For full list of enabled modules, use
Modules.getEnabled()
- Returns:
- the set of selected modules (by name) that the configuration has.
- See Also:
-
getFiles
-
getJvmArgSources
Return ordered Map of JVM arguments to Source (locations)- Returns:
- the ordered map of JVM Argument to Source (locations)
-
getMainArgs
- Throws:
IOException
-
getMainClassname
-
getMavenLocalRepoDir
-
findMavenLocalRepoDir
-
getModuleGraphFilename
-
getSkipFileValidationModules
-
getSources
-
hasJvmArgs
public boolean hasJvmArgs() -
hasSystemProperties
public boolean hasSystemProperties() -
getSystemProperties
-
isAllowInsecureHttpDownloads
public boolean isAllowInsecureHttpDownloads() -
isApproveAllLicenses
public boolean isApproveAllLicenses() -
isCreateFiles
public boolean isCreateFiles() -
isJPMS
public boolean isJPMS() -
isDryRun
public boolean isDryRun() -
getDryRunParts
-
isExec
public boolean isExec() -
isLicenseCheckRequired
public boolean isLicenseCheckRequired() -
isNormalMainClass
public boolean isNormalMainClass() -
isHelp
public boolean isHelp() -
isListClasspath
public boolean isListClasspath() -
isListConfig
public boolean isListConfig() -
getListModules
-
getShowModules
-
isRun
public boolean isRun() -
isStopCommand
public boolean isStopCommand() -
isTestingModeEnabled
public boolean isTestingModeEnabled() -
isVersion
public boolean isVersion() -
isCreateStartD
public boolean isCreateStartD() -
isCreateStartIni
public boolean isCreateStartIni() -
isUpdateIni
public boolean isUpdateIni() -
getMavenBaseUri
-
parse
-
parse
Parse a single line of argument.- Parameters:
arg
- the raw argument to parsesource
- the origin of this line of argument
-
processSystemProperty
-
setAllModules
-
setProperty
-
setRun
public void setRun(boolean run) -
toString
-