Jan,
Thank you for the reply. I just got the tasks to run fine with:
- jetty-distribution-9.2.9.v20150224.zip
- jetty-ant-9.2.9.v20150224.jar
Still not with:
- jetty-distribution-8.1.16.v20140903.zip
- jetty-ant-8.1.16.v20140903.jar
Here are the renamed tasks:
<target name="jetty.run">
<jetty stopPort="8081" stopKey="secret123">
</jetty>
</target>
<target name="jetty.stop">
<jetty stopPort="8081" stopKey="secret123" stopWait="10"/>
</target>
Here's the new error:
BUILD FAILED
...\build.xml:9: typedef class org.eclipse.jetty.server.ServerConnector cannot be found
I checked jetty-server-8.1.16.v20140903.jar, and indeed ServerConnector is missing there, where as it is present in jetty 9. Is there another artifact in which I would find this, that comes as part of the jetty 8 dist? I've included this in my build.xml as well, though no specific jar specified:
<typedef name="contextHandlers" classname="org.eclipse.jetty.server.ServerConnector"
classpathref="jetty.plugin.classpath" loaderref="jetty.loader" />
Regards,
Saad