Fixes #10158 - Deploy Jetty context XML file needs environment

Updated the documentation; a better fix is coming with #10411.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2023-08-26 17:01:21 +02:00
parent 2bf25969a0
commit 86c245d069
No known key found for this signature in database
GPG Key ID: 1677D141BCF3584D
1 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,16 @@ A simple Jetty context XML file, for example named `wiki.xml` is the following:
<2> Specifies the web application `contextPath`, which may be different from the `+*.war+` file name.
<3> Specifies the file system path of the `+*.war+` file.
The Jetty content XML file must be accompanied by a `+*.properties+` file that specifies the xref:og-deploy[environment] to use for the deployment:
.wiki.properties
[source,properties,subs=attributes]
----
environment={ee-current}
----
Refer to xref:og-deploy-rules-environment[this section] for more information about specifying the environment.
The `$JETTY_BASE` directory would look like this:
----
@ -47,6 +57,7 @@ $JETTY_BASE
│ ├── deploy.ini
│ └── http.ini
└── webapps
├── wiki.properties
└── wiki.xml
----