How can I pass a system property to jetty startup something like -DSERVER="localhost"
if it is in start.config what is the exact syntax ?
and will it be available to my deployed war with this System.getProperty("SERVER"
) ?
thnx in advance
How can I pass a system property to jetty startup something like -DSERVER="localhost"
if it is in start.config what is the exact syntax ?
and will it be available to my deployed war with this System.getProperty("SERVER"
) ?
thnx in advance
Have you tried to put something like this in start.ini
?
--exec
-DSERVER="localhost"
(perhaps before OPTIONS=
, but I'm not sure that's necessary.)
The comments in start.ini
say:
If the arguements in this file include JVM arguments (eg -Xmx512m) or JVM System properties (eg com.sun.???), then these will not take affect unless the --exec parameter is included [...]
Edit the /etc/jetty/start.config and add SERVER="127.0.0.1" in the start if the file.