jetty.home is only relevant for jetty-distribution use, looks like you are
using embedded-jetty.
You can specify -Djava.io.tmpdir=D:\alt\path on startup of your JVM
If you are using jetty-distribution, create a ${jetty.base}/work/ directory.
The lookup behavior can be found in a stackoverflow answer -
http://stackoverflow.com/questions/19232182/jetty-starts-in-c-temp
Joakim Erdfelt / [email protected]
On Wed, Nov 2, 2016 at 6:21 AM, Houtman, Roland <
[email protected]> wrote:
> Gents,
>
>
>
> Our application sets up jetty programmatically.
>
> Now what it did was:
>
> mWapContext.getServletContext().setAttribute("javax.servlet.context.tempdir",
> new File(System.getProperty("java.io.tmpdir")));
>
>
>
> But this way quite a few jetty-code paths are unaware of this directory.
>
> Also all other contexts picked up by WebAppProvider would not know the
> temp-folder.
>
>
>
> We use Jetty 9.0.3 with settings:
>
> java.io.tmpdir: C:\Users\<user>\AppData\Local\Temp
>
> java.home : c:\<app folder>\jre\jre
>
> jetty.home :
>
>
>
> * What is the way to let all contexts connected to Jetty by default point
> to a single temp folder(not the OS-default temp folder)?
>
> There’s a separate jetty document about temp folders, but for some
> reason it doesn’t click with what calls I need to perform.
>
> * Also, Jetty-home is empty. What folder should it be pointing to?
>
>
>
> Kind regards,
>
> Roland
>
>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users