Files
gerrit/to_jetty.sh
Shawn O. Pearce f14a1ded65 Switch build system to use Maven 2
This way we can easily depend upon other projects which also use
Maven, without needing to embed all of their dependencies directly
within our repository.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2008-12-20 17:48:48 -08:00

32 lines
593 B
Bash
Executable File

#!/bin/sh
# Builds and deploys into Jetty; primarily for debugging
jetty=$1
if [ -z "$jetty" ]
then
echo >&2 "usage: $0 jettydir"
exit 1
fi
if ! [ -f "$jetty/etc/jetty.xml" ]
then
echo >&2 "error: $jetty is not a Jetty installation"
exit 1
fi
out=appdist/target/gerrit-*-bin.dir &&
ctx="$jetty/contexts/gerrit.xml" &&
(cd appdist && mvn package) &&
cp devdb/jdbc-postgresql.jar "$jetty/lib/plus" &&
cp $out/gerrit-*/www/gerrit-*.war "$jetty/webapps/gerrit.war" &&
if [ -f "$ctx" ]
then
touch "$ctx"
else
cp jetty_gerrit.xml "$ctx" &&
echo "You need to edit and configure $ctx"
fi