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
void
dumpJvmArgs
(PrintStream out) void
void
void
Expand any command line added--lib
lib references.void
expandModules
(List<Module> activeModules) Build up the Classpath and XML file references based on enabled Module list.void
Expand any command line added--lib
lib references.Deprecated.getFiles()
Deprecated.usegetJvmArgSources()
instead, as it will return source references with each arg.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 a single line of argument.void
parse
(ConfigSources sources) protected void
processAndSetProperty
(String key, String value, String source) protected Props.Prop
processSystemProperty
(String key, String value, String source) void
void
void
setAllModules
(Modules allModules) void
setProperty
(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
-
dumpActiveXmls
-
dumpEnvironment
-
dumpJvmArgs
-
dumpProperties
-
dumpSystemProperties
-
expandSystemProperties
public void expandSystemProperties()Expand any command line added--lib
lib references. -
expandLibs
Expand any command line added--lib
lib references.- Throws:
IOException
- if unable to expand the libraries
-
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
-
getClasspath
-
getEnabledModules
Deprecated.usegetSelectedModules()
instead -
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 list of selected modules (by name) that the configuration has.
- See Also:
-
getFiles
-
getJvmArgs
Deprecated.usegetJvmArgSources()
instead, as it will return source references with each arg.Gets the List of JVM arguments detected. -
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
-
getProperties
-
getSystemProperties
-
getSkipFileValidationModules
-
getSources
-
getXmlFiles
-
hasJvmArgs
public boolean hasJvmArgs() -
hasSystemProperties
public boolean hasSystemProperties() -
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:
rawarg
- the raw argument to parsesource
- the origin of this line of argument
-
processSystemProperty
-
processAndSetProperty
-
resolveExtraXmls
- Throws:
IOException
-
resolvePropertyFiles
- Throws:
IOException
-
setAllModules
-
setProperty
-
setRun
public void setRun(boolean run) -
toString
-
getSelectedModules()
instead