Background
Disclaimer: I have very little experience with Java.
We previously used a wrapped version of Jetty 6 for on-demand static content (JS, CSS, images, HTML) during Ant builds so that we could run unit tests using PhantomJS against an environment hosted in HTTP.
However, Jetty is now on version 8.1.3, and we no longer need this packaging (which solves another issue that is currently controversial), so I would like to update it directly with Jetty 8.1.3.
First, I downloaded the entire Jetty distribution, which weighs about 40 MB. It works from Ant using "start.jar" ... but I really don't want to push unnecessary JARs there.
So, I downloaded the aggregate "jetty-server-8.1.3.v20120416.jar" (the last one) from the Maven repo , BUT I cannot use this JAR from Ant, as I could, using start.jar, for example "java -jar jetty-server-8.1.3.v20120416.jar OPTIONS = Server "
Jetty's documentation is both poor and missing (404). Ugh!
Actual question
What the hell am I doing with this aggregate “mooring server” JAR? Should I point to a specific class instead of the entire JAR?
...
Relevant question: What is the smallest set of files that Jetty needs to serve static content?
source
share