Class StartArgs


  • public class StartArgs
    extends java.lang.Object
    The Arguments required to start Jetty.
    • Field Detail

      • VERSION

        public static final java.lang.String VERSION
      • ALL_PARTS

        public static final java.util.Set<java.lang.String> ALL_PARTS
      • ARG_PARTS

        public static final java.util.Set<java.lang.String> ARG_PARTS
    • 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​(java.lang.String rawarg,
                          java.lang.String source)
        Parse a single line of argument.
        Parameters:
        rawarg - the raw argument to parse
        source - 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 class java.lang.Object