I am using Restlet 2.3 with the Jetty ext. How do you set the temp
directory that the jar
is unpacked to?
Using just jetty in another project it can be achieved using:
private void resetTempDirectory(WebAppContext context, String currentDir) {
File tmpDir = new File(currentDir, ".tmp");
tmpDir.deleteOnExit();
tmpDir.mkdir();
context.setTempDirectory(tmpDir);
}