2012-11-06 53 views
1

我试图执行运行分叉通过Maven的端口号被存储为环境变量“码头启动端口”如何设置参考

如何参考设为变量码头配置文件中的变量在码头配置文件中为此标签 <Set name="port"><Property name="jetty.port" default="8081"/></Set>

的jetty.xml的样子:

<Configure id="FileServer" class="org.eclipse.jetty.server.Server"> 

    <Call name="addConnector"> 
    <Arg> 
     <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> 
     <Set name="host"><Property name="jetty.host" /></Set> 
     <Set name="port"><Property name="jetty.port" default="8081"/></Set> 
     <Set name="maxIdleTime">300000</Set> 
     <Set name="Acceptors">4</Set> 
     <Set name="statsOn">false</Set> 
     <Set name="confidentialPort">8443</Set> 
    <Set name="lowResourcesConnections">20000</Set> 
    <Set name="lowResourcesMaxIdleTime">5000</Set> 
     </New> 
    </Arg> 
</Call> 
</Configure> 

感谢。

回答

0

看起来像需要更改<Set name="port"><Property name="jetty.port" default="8081"/></Set><Set name="port"><SystemProperty name="jetty-start-port"/></Set>