Package org.eclipse.jetty.start
Class StartArgs
- java.lang.Object
-
- org.eclipse.jetty.start.StartArgs
-
public class StartArgs extends java.lang.Object
The Arguments required to start Jetty.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dumpActiveXmls()
void
dumpEnvironment()
void
dumpJvmArgs()
void
dumpProperties()
void
dumpSystemProperties()
void
expandLibs()
Expand any command line added--lib
lib references.void
expandModules(java.util.List<Module> activeModules)
Build up the Classpath and XML file references based on enabled Module list.void
expandSystemProperties()
Expand any command line added--lib
lib references.java.nio.file.Path
findMavenLocalRepoDir()
Modules
getAllModules()
Classpath
getClasspath()
java.util.Set<java.lang.String>
getDryRunParts()
java.util.List<java.lang.String>
getEnabledModules()
java.util.List<FileArg>
getFiles()
java.util.List<java.lang.String>
getJvmArgs()
java.util.List<java.lang.String>
getListModules()
CommandLineBuilder
getMainArgs(java.util.Set<java.lang.String> parts)
java.lang.String
getMainClassname()
java.lang.String
getMavenBaseUri()
java.lang.String
getMavenLocalRepoDir()
java.lang.String
getModuleGraphFilename()
Props
getProperties()
java.util.Set<java.lang.String>
getSkipFileValidationModules()
java.util.List<java.lang.String>
getSources(java.lang.String module)
java.util.List<java.lang.String>
getStartModules()
java.util.List<java.nio.file.Path>
getXmlFiles()
boolean
hasJvmArgs()
boolean
hasSystemProperties()
boolean
isApproveAllLicenses()
boolean
isCreateFiles()
boolean
isCreateStartd()
boolean
isDryRun()
boolean
isExec()
boolean
isHelp()
boolean
isJPMS()
boolean
isLicenseCheckRequired()
boolean
isListClasspath()
boolean
isListConfig()
boolean
isNormalMainClass()
boolean
isRun()
boolean
isStopCommand()
boolean
isTestingModeEnabled()
boolean
isUpdateIni()
boolean
isVersion()
void
parse(java.lang.String rawarg, java.lang.String source)
Parse a single line of argument.void
parse(ConfigSources sources)
protected void
processAndSetProperty(java.lang.String key, java.lang.String value, java.lang.String source)
protected Props.Prop
processSystemProperty(java.lang.String key, java.lang.String value, java.lang.String source)
void
resolveExtraXmls()
void
resolvePropertyFiles()
void
setAllModules(Modules allModules)
void
setProperty(java.lang.String key, java.lang.String value, java.lang.String source)
void
setRun(boolean run)
java.lang.String
toString()
-
-
-
Constructor Detail
-
StartArgs
public StartArgs(BaseHome baseHome)
-
-
Method Detail
-
dumpActiveXmls
public void dumpActiveXmls()
-
dumpEnvironment
public void dumpEnvironment()
-
dumpJvmArgs
public void dumpJvmArgs()
-
dumpProperties
public void dumpProperties()
-
dumpSystemProperties
public void dumpSystemProperties()
-
expandSystemProperties
public void expandSystemProperties()
Expand any command line added--lib
lib references.
-
expandLibs
public void expandLibs() throws java.io.IOException
Expand any command line added--lib
lib references.- Throws:
java.io.IOException
- if unable to expand the libraries
-
expandModules
public void expandModules(java.util.List<Module> activeModules) throws java.io.IOException
Build up the Classpath and XML file references based on enabled Module list.- Parameters:
activeModules
- the active (selected) modules- Throws:
java.io.IOException
- if unable to expand the modules
-
getStartModules
public java.util.List<java.lang.String> getStartModules()
-
getAllModules
public Modules getAllModules()
-
getClasspath
public Classpath getClasspath()
-
getEnabledModules
public java.util.List<java.lang.String> getEnabledModules()
-
getFiles
public java.util.List<FileArg> getFiles()
-
getJvmArgs
public java.util.List<java.lang.String> getJvmArgs()
-
getMainArgs
public CommandLineBuilder getMainArgs(java.util.Set<java.lang.String> parts) throws java.io.IOException
- Throws:
java.io.IOException
-
getMainClassname
public java.lang.String getMainClassname()
-
getMavenLocalRepoDir
public java.lang.String getMavenLocalRepoDir()
-
findMavenLocalRepoDir
public java.nio.file.Path findMavenLocalRepoDir()
-
getModuleGraphFilename
public java.lang.String getModuleGraphFilename()
-
getProperties
public Props getProperties()
-
getSkipFileValidationModules
public java.util.Set<java.lang.String> getSkipFileValidationModules()
-
getSources
public java.util.List<java.lang.String> getSources(java.lang.String module)
-
getXmlFiles
public java.util.List<java.nio.file.Path> getXmlFiles()
-
hasJvmArgs
public boolean hasJvmArgs()
-
hasSystemProperties
public boolean hasSystemProperties()
-
isApproveAllLicenses
public boolean isApproveAllLicenses()
-
isCreateFiles
public boolean isCreateFiles()
-
isJPMS
public boolean isJPMS()
-
isDryRun
public boolean isDryRun()
-
getDryRunParts
public java.util.Set<java.lang.String> 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
public java.util.List<java.lang.String> getListModules()
-
isRun
public boolean isRun()
-
isStopCommand
public boolean isStopCommand()
-
isTestingModeEnabled
public boolean isTestingModeEnabled()
-
isVersion
public boolean isVersion()
-
isCreateStartd
public boolean isCreateStartd()
-
isUpdateIni
public boolean isUpdateIni()
-
getMavenBaseUri
public java.lang.String getMavenBaseUri()
-
parse
public void parse(ConfigSources sources)
-
parse
public void parse(java.lang.String rawarg, java.lang.String source)
Parse a single line of argument.- Parameters:
rawarg
- the raw argument to parsesource
- the origin of this line of argument
-
processSystemProperty
protected Props.Prop processSystemProperty(java.lang.String key, java.lang.String value, java.lang.String source)
-
processAndSetProperty
protected void processAndSetProperty(java.lang.String key, java.lang.String value, java.lang.String source)
-
resolveExtraXmls
public void resolveExtraXmls() throws java.io.IOException
- Throws:
java.io.IOException
-
resolvePropertyFiles
public void resolvePropertyFiles() throws java.io.IOException
- Throws:
java.io.IOException
-
setAllModules
public void setAllModules(Modules allModules)
-
setProperty
public void setProperty(java.lang.String key, java.lang.String value, java.lang.String source)
-
setRun
public void setRun(boolean run)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-