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

    • expandEnvironments

      public void expandEnvironments(List<Module> activeModules) throws IOException
      Throws:
      IOException
    • getJettyEnvironment

      public StartEnvironment getJettyEnvironment()
    • getEnvironments

      public Collection<StartEnvironment> getEnvironments()
    • getEnvironment

      public StartEnvironment getEnvironment(String envName)
    • dumpJavaEnvironment

      public void dumpJavaEnvironment(PrintStream out)
    • dumpJvmArgs

      public void dumpJvmArgs(PrintStream out)
    • dumpSystemProperties

      public void dumpSystemProperties(PrintStream out)
    • expandSystemProperties

      public void expandSystemProperties()
      Expand any command line added --libs lib references.
    • 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()
    • getSelectedModules

      public Set<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 set of selected modules (by name) that the configuration has.
      See Also:
    • getFiles

      public List<FileArg> getFiles()
    • 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()
    • getSkipFileValidationModules

      public Set<String> getSkipFileValidationModules()
    • getSources

      public Set<String> getSources(String module)
    • hasJvmArgs

      public boolean hasJvmArgs()
    • hasSystemProperties

      public boolean hasSystemProperties()
    • getSystemProperties

      public Map<String,String> getSystemProperties()
    • 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 StartEnvironment parse(StartEnvironment environment, String arg, String source)
      Parse a single line of argument.
      Parameters:
      arg - the raw argument to parse
      source - the origin of this line of argument
    • processSystemProperty

      protected Props.Prop processSystemProperty(String key, String value, String source)
    • setAllModules

      public void setAllModules(Modules allModules)
    • setProperty

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

      public void setRun(boolean run)
    • toString

      public String toString()
      Overrides:
      toString in class Object