如何从ant启动调试模式的嵌入式jetty服务器?这是我的build.xml文件:
<target name="jettyRun">
<delete dir="jetty-temp" quiet="true" />
<jetty tempDirectory="jetty-temp">
<webApp name="${application.name}" warfile="${fileToDeploy}" contextpath="/${application.name}"/>
<webApp name="${application.name}resources" warfile="${resourcesToDeploy}" contextpath="/${application.name}resources"/>
</jetty>
</target>
答案 0 :(得分:3)
此链接可以帮助您 http://swik.net/Peter-Thomas/Incremental+Operations/How+to+start+and+stop+Jetty+from+Ant/mut2
基本上你就像这样启动jetty服务器
<java jar="${jetty.home}/start.jar" fork="true" dir="${jetty.home}">
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/>
<jvmarg value="-Xdebug"/>
</Java>
希望这有帮助。