如何将参数传递到码头服务

问题描述:

当我运行下列方式码头:如何将参数传递到码头服务

set PROJECT_HOME=%CD% 
start java -Dproject.home="%PROJECT_HOME%" -DSTOP.PORT=8079 -DSTOP.KEY=stop -jar start.jar etc/jetty-logging.xml etc/jetty.xml 

我能够使用参数PROJECT_HOMEmycontext.xml

SystemProperty name="project.home" default="" 

是有什么办法可以通过PROJECT_HOMEmycontext.xml当我从Je tty-Services.exe

在此先感谢。

假设您使用Windows Service Wrapper。

我认为你可以在码头,service.conf配置此

wrapper.java.additional.1=-Djetty.home=../projectHome 
+0

感谢您的回复 – evgeniy44 2011-07-11 10:23:35