Usually, I started Jetty by creating an instance of the server, installing the connector, handler LifeCycleListener, and then calling start()the server instance. I have no vague idea how to do this with a task jettyRunin Gradle. The documentation is confusing me, and I have yet to find an example of how this task works, except page after page gradle jettyRun.
This task appeals to me because it supposedly returns immediately after its completion. This is useful for running Selenium tests after my webapp runs on Jenkins. I tried to do this with a task JavaExec, but it wonβt work, since the task JavaExecdoes not end until the underlying JVM completes.
source
share