When i run jetty in the following way:
set PROJECT_HOME=%CD%
start java -Dproject.home="%PROJECT_HOME%" -DST开发者_运维百科OP.PORT=8079 -DSTOP.KEY=stop -jar start.jar etc/jetty-logging.xml etc/jetty.xml
i am able to use parameter PROJECT_HOME in mycontext.xml:
SystemProperty name="project.home" default=""
Is there any way to pass PROJECT_HOME to mycontext.xml when I run jetty from Jetty-Services.exe
Thanks in advance.
Assuming you are using Windows Service Wrapper.
I think you can configure this in the jetty-service.conf
wrapper.java.additional.1=-Djetty.home=../projectHome
精彩评论