Class StartArgs
java.lang.Object
org.eclipse.jetty.start.StartArgs
The Arguments required to start Jetty.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ModulesCollection of all modulesprivate booleanprivate final BaseHomeprivate ClasspathList of all active [lib] sections from enabled modulesprivate booleanFiles related argsprivate booleanprivate booleanprivate booleanprivate StringList of all active [files] sections from enabled modulesprivate booleanprivate static final Stringprivate static final Stringprivate static final StringList of all active [jpms] sections for enabled modulesprivate booleanJVM arguments, found via command line and in all active [exec] sections from enabled modulesprivate booleanprivate booleanprivate booleanprivate static final Stringprivate Stringprivate static final Stringprivate String--write-module-graph=[filename]List of enabled modulesprivate PropsList of all property references found directly on command line or start.iniList of all property filesprivate booleanShould the server be run?List of modules to skip [files] section validationMap of enabled modules to the source of where that activation occurred--add-to-start[d]=[module,[module]]private booleanprivate booleanprivate booleanprivate booleanstatic final StringList of all xml references found directly on command line or start.iniList of all active [xml] sections from enabled modules -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidaddUniquePropertyFile(String propertyFileRef, Path propertyFile) private voidaddUniqueXmlFile(String xmlRef, Path xmlfile) voidvoidvoidvoidprivate voiddumpProperty(String key) voidprivate voiddumpSystemProperty(String key) private voidenableModules(String source, List<String> moduleNames) private voidEnsure that the System Properties are set (if defined as a System property, or start.config property, or start.ini property)(package private) voidexpandJPMS(List<Module> activeModules) voidExpand any command line added--liblib references.voidexpandModules(List<Module> activeModules) Build up the Classpath and XML file references based on enabled Module list.voidExpand any command line added--liblib references.getFiles()getMainArgs(Set<String> parts) getSources(String module) booleanbooleanbooleanbooleanbooleanbooleanisDryRun()booleanisExec()booleanisHelp()booleanisJPMS()booleanbooleanbooleanprivate booleanisMethodAvailable(Class<?> clazz, String methodName, Class<?>[] params) booleanbooleanisRun()booleanbooleanbooleanbooleanvoidParse a single line of argument.voidparse(ConfigSources sources) private voidparseJPMSKeyValue(Module module, String line, String directive, boolean valueIsFile, Map<String, Set<String>> output) protected voidprocessAndSetProperty(String key, String value, String source) protected Props.PropprocessSystemProperty(String key, String value, String source) voidvoidvoidsetAllModules(Modules allModules) voidsetProperty(String key, String value, String source) voidsetRun(boolean run) toString()
-
Field Details
-
VERSION
-
ALL_PARTS
-
ARG_PARTS
-
JETTY_VERSION_KEY
- See Also:
-
JETTY_TAG_NAME_KEY
- See Also:
-
JETTY_BUILDNUM_KEY
- See Also:
-
MAIN_CLASS
- See Also:
-
MODULE_MAIN_CLASS
- See Also:
-
baseHome
-
modules
-
skipFileValidationModules
-
sources
-
files
-
classpath
List of all active [lib] sections from enabled modules -
xmls
-
jmodAdds
-
jmodPatch
-
jmodOpens
-
jmodExports
-
jmodReads
-
jvmArgs
-
xmlRefs
-
propertyFileRefs
-
propertyFiles
-
properties
-
systemPropertySource
-
rawLibs
-
startModules
-
moduleGraphFilename
--write-module-graph=[filename] -
allModules
Collection of all modules -
run
private boolean runShould the server be run? -
createFiles
private boolean createFilesFiles related args -
licenseCheckRequired
private boolean licenseCheckRequired -
testingMode
private boolean testingMode -
help
private boolean help -
stopCommand
private boolean stopCommand -
listModules
-
listClasspath
private boolean listClasspath -
listConfig
private boolean listConfig -
version
private boolean version -
dryRun
private boolean dryRun -
dryRunParts
-
jpms
private boolean jpms -
createStartd
private boolean createStartd -
updateIni
private boolean updateIni -
mavenBaseUri
-
exec
private boolean exec -
execProperties
-
approveAllLicenses
private boolean approveAllLicenses
-
-
Constructor Details
-
StartArgs
-
-
Method Details
-
addFile
-
addUniqueXmlFile
- Throws:
IOException
-
addUniquePropertyFile
- Throws:
IOException
-
dumpActiveXmls
public void dumpActiveXmls() -
dumpEnvironment
public void dumpEnvironment() -
dumpJvmArgs
public void dumpJvmArgs() -
dumpProperties
public void dumpProperties() -
dumpProperty
-
dumpSystemProperties
public void dumpSystemProperties() -
dumpSystemProperty
-
ensureSystemPropertySet
Ensure that the System Properties are set (if defined as a System property, or start.config property, or start.ini property)- Parameters:
key- the key to be sure of
-
expandSystemProperties
public void expandSystemProperties()Expand any command line added--liblib references. -
expandLibs
Expand any command line added--liblib 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
-
expandJPMS
- Throws:
IOException
-
parseJPMSKeyValue
private void parseJPMSKeyValue(Module module, String line, String directive, boolean valueIsFile, Map<String, Set<String>> output) throws IOException - Throws:
IOException
-
getStartModules
-
getAllModules
-
getClasspath
-
getEnabledModules
-
getFiles
-
getJvmArgs
-
getMainArgs
- Throws:
IOException
-
getMainClassname
-
getMavenLocalRepoDir
-
findMavenLocalRepoDir
-
getModuleGraphFilename
-
getProperties
-
getSkipFileValidationModules
-
getSources
-
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
-
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
-
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
-
parse
-
parse
-
processSystemProperty
-
processAndSetProperty
-
enableModules
-
resolveExtraXmls
- Throws:
IOException
-
resolvePropertyFiles
- Throws:
IOException
-
setAllModules
-
setProperty
-
isMethodAvailable
-
setRun
public void setRun(boolean run) -
toString
-