How can I start embedded jetty server in debug mode from ant? Here is my build.xml file:
<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>
This link should help you
http://swik.net/Peter-Thomas/Incremental+Operations/How+to+start+and+stop+Jetty+from+Ant/mut2
Basically you start the jetty server like this
Hope this helps.