I would like to have a portable Jetty Server. The default jetty.home directory contains
JettyHome │ ├─etc │ ├─ jetty.xml │ ├─ jetty-logging.xml │ ├─ jetty-plus.xml │ └─ webdefault.xml ├─logs │ ├─lib │ ├─ jetty-6.1.26.jar │ └─ other.jar ├─webapps │ └─MyWebApp.war ├─ start.jar └─ start.ini
From the above, I would like to eliminate etc
and lib
directory and keep the following
JettyHome │ ├─logs ├─webapps │ └─MyWebApp.war └─ start.jar
I packed all the lib
folder jars into start.jar using OneJar along with start.ini
. Is there any way to keep etc
folder contents inside the jar so that I can simply run
java -Xmx640M -jar rw.jar
instead of
java -Xmx640M -jar rw.jar etc/jetty.xml etc/jetty-annotations.xml etc/jetty-deploy.xml etc/jetty-logging.xml etc/jetty-webapps.xml
So I can have a portable release and I never worry about changing configuration by someone in client place.
Thanks.