This must be a dead simple answer but one I just can’t seem to find!
I’ve just started using Jetty 7.0.2 on CentOS 5.5 and have deployed a webapp with the default settings (by just placing my WAR file in the /webapps directory). When Jetty starts up, it extracts the war into the /tmp/jetty {something-warfilename-etc} directory.
I understand that Jetty has loads of custom configuration that can be implemented, for now, however, I am just interested in setting the location for the extracted war files so that I can modify .properties files etc on the fly safely.
Thanks in advance!
Why not just put the unpacked war file in
webapps/?As their docs say, if Jetty finds a directory in
$JETTY_HOME/webapps/it will happily deploy it as a servlet webapp. Then you can adjust the properties file without changing any Jetty settings.This also means that you don’t have to worry about Jetty overwriting any changes to property files when you have a new version of the app (though you still have to be careful about that).