Contact the core Jetty developers at
www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
DOCUMENTATION: Jetty 6 - this wiki. Jetty 7 - at Eclipse. Jetty8 - at Eclipse. Jetty 9 - at Eclipse.
Skip to end of metadata
Go to start of metadata
Where are Jetty's temporary directories?
Jetty itself has no temporary directories, but each web application can be assigned a directory into which the war is unpacked, etc.
The algorithm for determining a webapp's temporary directory location is as follows:
- Try to use an explicit directory specifically for this webapp:
- Iff webapp.getTempDirectory() is set, use it. Do NOT delete it on jvm exit.
- Iff javax.servlet.context.tempdir context attribute is set for this webapp && exists && writeable, then use it. Do NOT delete on jvm exit.
- Create a directory based on global settings. The new directory will be called "Jetty_"host""port""context""+virtualhost :
- Iff $(jetty.home)/work exists create the directory there. Do NOT delete on jvm exit. Do NOT delete contents if dir already exists.
- Iff WEB-INF/work exists create the directory there. Do NOT delete on jvm exit. Do NOT delete contents if dir already exists.
- Else create dir in $(java.io.tmpdir). Set delete on jvm exit. Delete contents if dir already exists.
Once a tempory directory has been allocated, a File instance for it is set as the javax.servlet.context.tempdir attribute of the web
application.
Labels