[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Jetty 9 {java.home}/work not being honored
|
Thanks. My opinion is having the work dir makes it easy to setup on servers shared by many users or there are multiple jetty installs. Convention over configuration usually makes for a better design so it seems worth bringing back work dir support... will vote for it.
On Dec 3, 2013 8:12 AM, "Joakim Erdfelt" <
joakim@xxxxxxxxxxx> wrote:
The support for ${jetty.home}/work was removed during the resolution of
bug 294531
In this commit
From the WebInfConfiguration class
But all is not lost.
If you are deploying your WebApp via a Jetty context deployable, you can set the specific temp directory for your specific webapp this way...
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath"><Property name="foo"/></Set>
<Set name="war">/var/web/webapps/foo.war</Set>
<Set name="tempDirectory"><Property name="jetty.home"/>/work/foo</Set> <!-- Set this -->
</Configure>
Note: that this functionality is a bit different than ${jetty.home}/work
As ${jetty.home}/work was the parent directory for the tempDirectory.
Note that any implementation for this would be for ${jetty.base}/work, not ${jetty.home}/work
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users