Class StartArgs

java.lang.Object
org.eclipse.jetty.start.StartArgs

public class StartArgs extends Object
The Arguments required to start Jetty.
  • Field Details

    • VERSION

      public static final String VERSION
    • ALL_PARTS

      public static final Set<String> ALL_PARTS
    • ARG_PARTS

      public static final Set<String> ARG_PARTS
    • ARG_ALLOW_INSECURE_HTTP_DOWNLOADS

      public static final String ARG_ALLOW_INSECURE_HTTP_DOWNLOADS
      See Also:
  • Constructor Details

    • StartArgs

      public StartArgs(BaseHome baseHome)
  • Method Details

    • dumpActiveXmls

      public void dumpActiveXmls(PrintStream out)
    • dumpEnvironment

      public void dumpEnvironment(PrintStream out)
    • dumpJvmArgs

      public void dumpJvmArgs(PrintStream out)
    • dumpProperties

      public void dumpProperties(PrintStream out)
    • dumpSystemProperties

      public void dumpSystemProperties(PrintStream out)
    • expandSystemProperties

      public void expandSystemProperties()
      Expand any command line added --lib lib references.
    • expandLibs

      public void expandLibs() throws IOException
      Expand any command line added --lib lib references.
      Throws:
      IOException - if unable to expand the libraries
    • expandModules

      public void expandModules(List<Module> activeModules) throws IOException
      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

      public List<String> getStartModules()
    • getAllModules

      public Modules getAllModules()
    • getClasspath

      public Classpath getClasspath()
    • getEnabledModules

      @Deprecated public List<String> getEnabledModules()
      Deprecated.
    • getSelectedModules

      public List<String> 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

      public List<FileArg> getFiles()
    • getJvmArgs

      @Deprecated public List<String> getJvmArgs()
      Deprecated.
      use getJvmArgSources() instead, as it will return source references with each arg.
      Gets the List of JVM arguments detected.
    • getJvmArgSources

      public Map<String,String> getJvmArgSources()
      Return ordered Map of JVM arguments to Source (locations)
      Returns:
      the ordered map of JVM Argument to Source (locations)
    • getMainArgs

      public CommandLineBuilder getMainArgs(Set<String> parts) throws IOException
      Throws:
      IOException
    • getMainClassname

      public String getMainClassname()
    • getMavenLocalRepoDir

      public String getMavenLocalRepoDir()
    • findMavenLocalRepoDir

      public Path findMavenLocalRepoDir()
    • getModuleGraphFilename

      public String getModuleGraphFilename()
    • getProperties

      public Props getProperties()
    • getSystemProperties

      public Map<String,String> getSystemProperties()
    • getSkipFileValidationModules

      public Set<String> getSkipFileValidationModules()
    • getSources

      public List<String> getSources(String module)
    • getXmlFiles

      public List<Path> 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

      public Set<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 List<String> getListModules()
    • getShowModules

      public List<String> 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

      public String getMavenBaseUri()
    • parse

      public void parse(ConfigSources sources)
    • parse

      public void parse(String rawarg, 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(String key, String value, String source)
    • processAndSetProperty

      protected void processAndSetProperty(String key, String value, String source)
    • resolveExtraXmls

      public void resolveExtraXmls() throws IOException
      Throws:
      IOException
    • resolvePropertyFiles

      public void resolvePropertyFiles() throws IOException
      Throws:
      IOException
    • setAllModules

      public void setAllModules(Modules allModules)
    • setProperty

      public void setProperty(String key, String value, String source)
    • setRun

      public void setRun(boolean run)
    • toString

      public String toString()
      Overrides:
      toString in class Object