Usage: java -jar start.jar [options...] [properties...] [configs...]

  The start.jar builds a classpath and executes a main java class with
  a classloader built from that classpath.  By default the start.jar
  mechanism is configured to start the jetty server, but it can be
  configured to start any java main class.

Command Line Options:
---------------------

  --help           This help / usage information.

  --version        Print the version information for Jetty and
                   dependent jars, then exit.

  --list-classpath Print the classpath information that will be used to start
                   Jetty

  --list-config    List the resolved configuration that will be used to
                   start Jetty.
                   Output includes:
                     o  Java Environment
                     o  Jetty Environment
                     o  JVM Arguments
                     o  Properties
                     o  Server Classpath
                     o  Server XML Configuration

  --dry-run        Print the command line that the start.jar generates,
                   then exit. This may be used to generate command lines
                   when the start.ini includes -X or -D arguments.

  --exec           Run the generated command line (see --dry-run) in
                   a sub process. This can be used when start.ini
                   contains -X or -D arguments, but creates an extra
                   JVM instance.
                   
  --exec-properties=<filename>
                   Assign a fixed name to the file used to transfer 
                   properties to the sub process. This allows the 
                   generated properties file to be saved and reused.
                   Without this option, a temporary file is used.
                   
  --commands=<filename>
                   Use each line of the file as arguments on the command
                   line.

Debug and Start Logging:
------------------------

  --debug          Enable debug output of the startup procedure.
                   Note: this does not setup debug for Jetty itself.
                   If you want debug for Jetty, configure your logging.
                   http://www.eclipse.org/jetty/documentation/

  --start-log-file=<filename>
                   A filename, relative to ${jetty.base}, where all startup
                   output will be sent.  This is useful for capturing startup
                   issues where the jetty specific logger has not yet kicked
                   in due to startup configuration errors.


Module Management:
------------------

  --list-modules   List non verbose modules defined by the system.
                   Looking for module files in ${jetty.base}/modules/*.mod and
                   then ${jetty.home}/modules/*.mod
                   Will also list enabled state based on information
                   present on ..
                    o  The command line
                    o  The ${jetty.base}/start.ini
                    o  The ${jetty.base}/start.d/*.ini files
  
  --list-modules=<tag>(,<tag>)*
                   List modules by tag. Use '*' for all tags. Prefix a tag 
                   with '-' to exclude the tag.  The special tag "internal"
                   is always excluded unless it is explicitly included.
                   
  --list-all-modules
                   List all modules.

  --module=<modulename>(,<modulename>)*
                   Temporarily enable a module from the command line.
                   Note: this can also be used in the ${jetty.base}/start.ini
                   or ${jetty.base}/start.d/*.ini files.
                   
  --add-to-start=<modulename>(,<modulename>)*
                   Add the modules to the list of modules enabled at start. 
                   Transitive dependencies are followed and dependent
                   modules may also explicitly added.
                   Modules are added to the start by creating an ini file
                   that contains the --module argument and any other parameters
                   defined in the modules ini template.                    
                   If the directory ${jetty.base}/start.d 
                   exists then <modulename>.ini files are created within
                   that directory, otherwise then enabling configuration
                   is appended to the ${jetty.base}/start.ini file.
                   If the ini template contains properties, these may be 
                   amended in the generated file by specifying those 
                   properties on the command line.

                   Note: not all modules have ini templates and thus may
                   be transitively enabled and not explicitly enabled in
                   a ini file.
                   
  --update-ini     Scan all start.ini and start.d/*.ini files and update
                   any properties with values specified on the command
                   line. e.g. --update-ini jetty.http.port=8888

  --create-startd  Ensure that a start.d directory exists for use by
                   subsequent --add-to-start=*. If a start.ini file exists
                   it is moved to the start.d directory

  --write-module-graph=<filename>
                   Create a graphviz *.dot file of the module graph as it
                   exists for the active ${jetty.base}.
                   See http://graphviz.org/ for details on how to post-process
                   this file into the output best suited for your needs.
                   
  --create-files   Create any missing files that are required by initialized 
                   modules.  This may download a file from the network if the 
                   module provides a URL.

  --skip-file-validation=<modulename>(,<modulename)*
                   Disable the [files] section validation of content
                   in the ${jetty.base} directory for a specific
                   module.  Useful for modules that have downloadable
                   content that is being overridden with alternatives
                   in the ${jetty.base} directory.
                   CAUTION: 
                     This advanced option is for administrators that
                     fully understand the configuration of their
                     ${jetty.base} and are willing to forego some of the
                     safety checks built into the jetty-start mechanism.
                     
  --approve-all-licenses
                   Approve all license questions. Useful for enabling 
                   modules from a script that does not require user interaction.

Startup / Shutdown Command Line:
--------------------------------

  --stop           Send a stop signal to the running Jetty instance.
                   The server must have been started with a STOP.PORT=<port>
                   property set and the stop command must have the same property.

Advanced Commands:
------------------

  --lib=<classpath>
                   Add arbitrary classpath entries to the the server classpath.
                   
  --include-jetty-dir=<path>
                   Include an extra jetty directory to use as a source
                   for configuration details.  This directory behaves similarly
                   to ${jetty.base} but sits at a layer between ${jetty.base}
                   and ${jetty.home}.  This allows for some complex hierarchies
                   of configuration details.

  --download=<http-uri>|<location>
                   Advanced usage, If the file does not exist at the given
                   location, download it from the given http URI.
                   Notes: location is always relative to ${jetty.base}.
                          you might need to escape the slash "\|" to use
                          this on some environments.


Properties:
-----------
  Properties are used to parameterize:
    + XML files using the <Property name="pname"/> element 
    + Module files using the ${pname} syntax

  Properties and System Properties may be set on the command line, 
  in a ini file or in a [ini] section of a module using the following syntax:

    name=value
      Set a property that can be expanded in XML files with the <Property> element.

    name+=value
      Append value to an existing property value.
      
    name+=,value
      Append value to an existing property value, using a comma separator if needed.

    name?=value
      Set a property only if it is not already set.

  If any of the previous formats is preceded by -D, then a system property is set 
  as well as a start property.
   
  Each module may define it's own properties. Start properties defined include:

    jetty.home=[directory]
      Set the home directory of the jetty distribution.

    jetty.base=[directory]
      Set the jetty configuration directory.  This is where the etc, webapps and start
      files will be looked for. If not found in jetty.base, they are looked for in
      jetty.home.

    STOP.HOST=[string]
      The host to use to stop the running Jetty server (defaults to 127.0.0.1)
      Required along with STOP.PORT if you want to use the --stop option above.
      
    STOP.PORT=[number]
      The port to use to stop the running Jetty server.
      Required along with STOP.KEY if you want to use the --stop option above.

    STOP.KEY=[alphanumeric]
      The passphrase defined to stop the server.
      Required along with STOP.PORT if you want to use the --stop option above.

    STOP.WAIT=[number]
      The time (in seconds) to wait for confirmation that the running
      Jetty server has stopped. If not specified, the stopper will wait
      indefinitely. Use in conjunction with the --stop option.


Defaults:
---------

  Command line arguments can come from any jetty configuration directory
  (except ${jetty.home}), such as ${jetty.base} and any added jetty directories
  (see --include-jetty-dir=<path>).  
  The contents of <path>/start.ini and <path>/start.d/*.ini are all used
  to build up your command line arguments.
  In case of a conflict, the resolution of who wins, will look like this.
    
    1) <command-line itself>
    2) ${jetty.base}/start.ini
    3) ${jetty.base}/start.d/*.ini
    4) <jetty-dir>/start.ini
    5) <jetty-dir>/start.d/*.ini

For more information on startup, see the online documentation at
    http://www.eclipse.org/jetty/documentation/
