From ffd92d304db0d98b82cbde2fc23ff6b955129327 Mon Sep 17 00:00:00 2001 From: gregw Date: Fri, 25 Sep 2020 11:16:28 +0200 Subject: [PATCH] README for jetty-home Signed-off-by: gregw --- jetty-home/src/main/resources/README.txt | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 jetty-home/src/main/resources/README.txt diff --git a/jetty-home/src/main/resources/README.txt b/jetty-home/src/main/resources/README.txt new file mode 100644 index 00000000000..12b43aebe41 --- /dev/null +++ b/jetty-home/src/main/resources/README.txt @@ -0,0 +1,48 @@ +ECLIPSE JETTY +============= +The Eclipse Jetty project is a 100% Java HTTP Server, HTTP Client +and Servlet Container from the eclipse foundation + + http://www.eclipse.org/jetty/ + +Jetty is open source and is dual licensed using the +Eclipse Public License 2.0 (https://www.eclipse.org/legal/epl-2.0) +and the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0) +You may choose either license when distributing Jetty. + +RUNNING JETTY +============= +To run jetty you need to create a jetty base directory, that holds the +configuration separately from this jetty home distribution directory. +The following creates the jetty demonstration in a temporary base: + + $ export JETTY_HOME=$PWD + $ mkdir /tmp/demo-base + $ cd /tmp/demo-base + $ java -jar $JETTY_HOME/start.jar --add-module=demo + $ java -jar $JETTY_HOME/start.jar + +To create a minimal configuration that will support WAR deployment: + + $ export JETTY_HOME=$PWD + $ mkdir /tmp/jetty-base + $ cd /tmp/jetty-base + $ java -jar $JETTY_HOME/start.jar --add-module=http,deploy + $ java -jar $JETTY_HOME/start.jar + +Other modules can be added with the command: + + $ java -jar $JETTY_HOME/start.jar --add-module=,... + +To see what modules are available + + $ java -jar $JETTY_HOME/start.jar --list-modules + +To see what the current configuration is + + $ java -jar $JETTY_HOME/start.jar --list-config + +To see more start options + + $ java -jar $JETTY_HOME/start.jar --help +