Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>By default, Jetty always expands WAR files.</p> <p>You can configure it to not expand by using the <code>extractWAR</code> in your <a href="http://www.eclipse.org/jetty/documentation/9.0.6.v20130930/configuring-specific-webapp-deployment.html" rel="nofollow noreferrer">advanced configuration descriptor file</a>.</p> <p>However, what I think you are actually asking about, is how does the web app / servlet spec temp directory logic work?</p> <p>The tempDirectory used by Jetty is determined by a number of factors, mostly dictated by the servlet spec. <a href="https://stackoverflow.com/a/19232771/775715">See prior answer about the topic of tempDirectory configuration for details</a>.</p> <p>When the temp directory is unspecified / unconfigured a new temp directory is created using the <a href="https://github.com/eclipse/jetty.project/blob/jetty-9.0.6.v20130930/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java#L599-L699" rel="nofollow noreferrer">following rough syntax</a>.</p> <pre class="lang-java prettyprint-override"><code>File tempDir = new File(System.getProperty("java.io.tmpdir") + File.separator + "jetty-" + host + "-" + port + "-" + resourceBase + "-_" + context + "-" + virtualhost + "-" + randomdigits + ".dir"); </code></pre> <p>The temp directory used is persisted, meaning it is not deleted on server shutdown. The temp directory is used to unpack the WAR into when the WAR file (or context deployable XML) is determined to be newer than the content in the persisted temp directory.</p> <p>Starting with Jetty 9.1, there is now a <code>WebAppContext.setPersistTempDirectory(boolean)</code> that can be used to turn off the temp directory persistence.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload