title: Gradle jettyRun: how does this thing work?
body: <p>Normally, I would start Jetty by constructing a Server instance, setting a connector, a handler, and <code>LifeCycleListener</code>, followed by a call to <code>start()</code> on the Server instance.  I haven't the foggiest idea how to make this happen with the <code>jettyRun</code> task in Gradle.  The documentation is confusing to me, and I have yet to find an example of how this task works, other than page after page of <code>gradle jettyRun</code>.  </p>
  
  <p>This task is appealing to me because it allegedly returns immediately after execution.  This is helpful for running Selenium tests after my webapp is running from Jenkins.  I tried to do this via a <code>JavaExec</code> task, but this won't work since the <code>JavaExec</code> task does not terminate until the underlying JVM terminates as well.    </p>