Package org.eclipse.jetty.start
Class StartArgs
java.lang.Object
org.eclipse.jetty.start.StartArgs
The Arguments required to start Jetty.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Modules
Collection of all modulesprivate boolean
private final BaseHome
private Classpath
List of all active [lib] sections from enabled modulesprivate boolean
Files related argsprivate boolean
private boolean
private boolean
private String
List of all active [files] sections from enabled modulesprivate boolean
private static final String
private static final String
private static final String
List of all active [jpms] sections for enabled modulesprivate boolean
JVM arguments, found via command line and in all active [exec] sections from enabled modulesprivate boolean
private boolean
private boolean
private static final String
private String
private static final String
private String
--write-module-graph=[filename]List of enabled modulesprivate Props
List of all property references found directly on command line or start.iniList of all property filesprivate boolean
Should 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 boolean
private boolean
private boolean
private boolean
static final String
List 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 void
private void
addUniquePropertyFile
(String propertyFileRef, Path propertyFile) private void
addUniqueXmlFile
(String xmlRef, Path xmlfile) void
void
void
void
private void
dumpProperty
(String key) void
private void
dumpSystemProperty
(String key) private void
enableModules
(String source, List<String> moduleNames) private void
Ensure that the System Properties are set (if defined as a System property, or start.config property, or start.ini property)(package private) void
expandJPMS
(List<Module> activeModules) 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.getFiles()
getMainArgs
(Set<String> parts) getSources
(String module) boolean
boolean
boolean
boolean
boolean
boolean
isDryRun()
boolean
isExec()
boolean
isHelp()
boolean
isJPMS()
boolean
boolean
boolean
private boolean
isMethodAvailable
(Class<?> clazz, String methodName, Class<?>[] params) boolean
boolean
isRun()
boolean
boolean
boolean
boolean
void
Parse a single line of argument.void
parse
(ConfigSources sources) private void
parseJPMSKeyValue
(Module module, String line, String directive, boolean valueIsFile, Map<String, Set<String>> output) 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
-
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
List of enabled modules -
skipFileValidationModules
List of modules to skip [files] section validation -
sources
Map of enabled modules to the source of where that activation occurred -
files
List of all active [files] sections from enabled modules -
classpath
List of all active [lib] sections from enabled modules -
xmls
List of all active [xml] sections from enabled modules -
jmodAdds
List of all active [jpms] sections for enabled modules -
jmodPatch
-
jmodOpens
-
jmodExports
-
jmodReads
-
jvmArgs
JVM arguments, found via command line and in all active [exec] sections from enabled modules -
xmlRefs
List of all xml references found directly on command line or start.ini -
propertyFileRefs
List of all property references found directly on command line or start.ini -
propertyFiles
List of all property files -
properties
-
systemPropertySource
-
rawLibs
-
startModules
--add-to-start[d]=[module,[module]] -
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--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
-
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
Parse a single line of argument.- Parameters:
rawarg
- the raw argument to parsesource
- the origin of this line of argument
-
processSystemProperty
-
processAndSetProperty
-
enableModules
-
resolveExtraXmls
- Throws:
IOException
-
resolvePropertyFiles
- Throws:
IOException
-
setAllModules
-
setProperty
-
isMethodAvailable
-
setRun
public void setRun(boolean run) -
toString
-