Programming Tips - Jetty: set temporary directory

Date: 2021sep14 Product: Jetty OS: Windows Keywords: Storage Sense, StorageSense, tmpwatcher Q. Jetty: set temporary directory A. I know of three ways. 1. For Jetty 8 and 9 you can set it in the context file
... <Configure class="org.eclipse.jetty.webapp.WebAppContext"> ... <Set name="tempDirectory">c:\mycustomtmp</Set> </Configure> ...
2. You can set it in the start.ini file by adding
... -Djava.io.tmpdir=c:\mycustomtmp ...
3. If you have a .bat file to install it with prunsrv, add something like this to the command line
++JvmOptions=-Djava.io.tmpdir=c:\mycustomtmp
More info https://stackoverflow.com/questions/31319201/how-to-change-the-temporary-directory-in-jetty9