| # Builds and deploys into Jetty; primarily for debugging |
| echo >&2 "usage: $0 jettydir [--fast]" |
| if ! [ -f "$jetty/etc/jetty.xml" ] |
| echo >&2 "error: $jetty is not a Jetty installation" |
| ctx="$jetty/contexts/gerrit.xml" && |
| if [ -f "$ctx" -a -n "$fast" ] |
| echo >&2 "warning: Using fast mode to build only GWT..." |
| (cd appjar && mvn install) && |
| (cd appwar && mvn package) && |
| cp appwar/target/gerrit-*.war "$jetty/webapps/gerrit.war" && |
| (cd appdist && mvn clean install) && |
| out=$(cd appdist/target/gerrit-*-bin.dir/gerrit-* && pwd) && |
| cp $out/www/gerrit-*.war "$jetty/webapps/gerrit.war" && |
| cp $out/jdbc/c3p0-*.jar "$jetty/lib/plus" && |
| cp $out/jdbc/postgresql-*jdbc*.jar "$jetty/lib/plus" && |
| rm -f "$jetty/contexts/test.xml" && |
| cp $out/www/jetty_gerrit.xml "$ctx" && |
| echo >&2 "You need to edit and configure $ctx" |