Get a temporary directory in which to unpack the war etc etc.
The algorithm for determining this is to check these alternatives
in the order shown:
A. Try to use an explicit directory specifically for this webapp:
-
Iff an explicit directory is set for this webapp, use it. Set delete on
exit depends on value of persistTempDirectory.
-
Iff javax.servlet.context.tempdir context attribute is set for
this webapp && exists && writeable, then use it. Set delete on exit depends on
value of persistTempDirectory.
B. Create a directory based on global settings. The new directory
will be called "Jetty-"+host+"-"+port+"__"+context+"-"+virtualhost+"-"+randomdigits+".dir"
If the user has specified the context attribute org.eclipse.jetty.webapp.basetempdir, the
directory specified by this attribute will be the parent of the temp dir created. Otherwise,
the parent dir is ${java.io.tmpdir}
. Set delete on exit depends on value of persistTempDirectory.