| 23 |
|
|
| 24 |
--dry-run Print the command line that the start.jar generates, |
--dry-run Print the command line that the start.jar generates, |
| 25 |
then exit. This may be used to generate command lines |
then exit. This may be used to generate command lines |
| 26 |
when the start.ini includes -X or -D arguments. |
when the start.ini includes -X or -D arguments: |
| 27 |
|
|
| 28 |
|
java -jar start.jar --dry-run > jetty.sh |
| 29 |
|
. jetty.sh |
| 30 |
|
|
| 31 |
|
--dry-run=parts Print specific parts of the command line. The parts |
| 32 |
|
are a comma separated list of |
| 33 |
|
o "java" - the JVM to run |
| 34 |
|
o "opts" - the JVM options (eg -D and -X flags) |
| 35 |
|
o "path" - the JVM class path or JPMS modules options |
| 36 |
|
o "main" - the main class to run |
| 37 |
|
o "args" - the arguments passed to the main class |
| 38 |
|
|
| 39 |
|
It is possible to decompose the start command: |
| 40 |
|
|
| 41 |
|
OPTS=$(java -jar start.jar --dry-run=opts,path) |
| 42 |
|
MAIN=$(java -jar start.jar --dry-run=main) |
| 43 |
|
ARGS=$(java -jar start.jar --dry-run=args) |
| 44 |
|
java $OPTS -Dextra=opt $MAIN $ARGS extra=arg |
| 45 |
|
|
| 46 |
|
Alternatively to create an args file for java: |
| 47 |
|
|
| 48 |
|
java -jar start.jar --dry-run=opts,path,main,args > /tmp/args |
| 49 |
|
java @/tmp/args |
| 50 |
|
|
| 51 |
--exec Run the generated command line (see --dry-run) in |
--exec Run the generated command line (see --dry-run) in |
| 52 |
a sub process. This can be used when start.ini |
a sub process. This can be used when start.ini |
| 69 |
--debug Enable debug output of the startup procedure. |
--debug Enable debug output of the startup procedure. |
| 70 |
Note: this does not setup debug for Jetty itself. |
Note: this does not setup debug for Jetty itself. |
| 71 |
If you want debug for Jetty, configure your logging. |
If you want debug for Jetty, configure your logging. |
| 72 |
http://www.eclipse.org/jetty/documentation/ |
https://www.eclipse.org/jetty/documentation/ |
| 73 |
|
|
| 74 |
--start-log-file=<filename> |
--start-log-file=<filename> |
| 75 |
A filename, relative to ${jetty.base}, where all startup |
A filename, relative to ${jetty.base}, where all startup |
| 77 |
issues where the jetty specific logger has not yet kicked |
issues where the jetty specific logger has not yet kicked |
| 78 |
in due to startup configuration errors. |
in due to startup configuration errors. |
| 79 |
|
|
|
|
|
| 80 |
Module Management: |
Module Management: |
| 81 |
------------------ |
------------------ |
| 82 |
|
|
| 178 |
The url to use to download Maven dependencies. |
The url to use to download Maven dependencies. |
| 179 |
Default is https://repo1.maven.org/maven2/. |
Default is https://repo1.maven.org/maven2/. |
| 180 |
|
|
|
|
|
|
|
|
| 181 |
Properties: |
Properties: |
| 182 |
----------- |
----------- |
| 183 |
Properties are used to parameterize: |
Properties are used to parameterize: |
| 215 |
maven.repo.uri=[url] default https://repo1.maven.org/maven2/. |
maven.repo.uri=[url] default https://repo1.maven.org/maven2/. |
| 216 |
The url to use to download Maven dependencies. |
The url to use to download Maven dependencies. |
| 217 |
|
|
|
|
|
| 218 |
Service Options: |
Service Options: |
| 219 |
---------------- |
---------------- |
| 220 |
|
|
| 238 |
remove-options: |
remove-options: |
| 239 |
-s stop service. |
-s stop service. |
| 240 |
|
|
|
|
|
| 241 |
Defaults: |
Defaults: |
| 242 |
--------- |
--------- |
| 243 |
|
|
| 255 |
5) <jetty-dir>/start.d/*.ini |
5) <jetty-dir>/start.d/*.ini |
| 256 |
|
|
| 257 |
For more information on startup, see the online documentation at |
For more information on startup, see the online documentation at |
| 258 |
http://www.eclipse.org/jetty/documentation/ |
https://www.eclipse.org/jetty/documentation/ |