I think the issue is that we removed (probably me) the {{work.mod}} file in our jetty standalone distribution. Or Jetty was doing it in a different way back then.
For example for Jetty 12, it contains:
{noformat} # DO NOT EDIT THIS FILE - See: https://eclipse.dev/jetty/documentation/
[description] Creates the $JETTY_BASE/work directory as a persistent temp directory. If a work directory exists, it is used for context temp directories, but they are persisted between runs of Jetty, so generated files (eg JSPs) can be kept.
[tags] server
[files] work/ {noformat}
Note that I've put it back at https://github.com/xwiki/xwiki-platform/commit/3cd58fa246bea5221f992733cd9202b2b37ca6e6#diff-bd0b00c364e5c143b0dc211cf11024573b662412a5380323b56146f05ee68485 in the context of XWIKI-21211 (but it's on a branch ATM, there are still issues before we can upgrade to Jetty 12). |
|