开发者

how to pass parameters to jetty service

开发者 https://www.devze.com 2023-02-03 04:26 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消