Browse files

Don't change directories because it breaks relative paths.

  • Loading branch information...
1 parent f5dd095 commit 021178b570abd44ef1072b1341c9916c211b6b20 @GraylinKim GraylinKim committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/run.sh
View
4 bin/run.sh
@@ -2,7 +2,7 @@
ROOTDIR="$(dirname $( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))"
VERSION=`sed -ne 's/\s*<version>\(.*\)<\/version>/\1/p' $ROOTDIR/pom.xml | head -1`
-cd "$ROOTDIR/target/legislation-$VERSION/WEB-INF/"
+BASE="$ROOTDIR/target/legislation-$VERSION/WEB-INF"
case $1 in
ingest) SCRIPT=gov.nysenate.openleg.scripts.Ingest; shift;;
@@ -11,4 +11,4 @@ case $1 in
--help | -h | help) echo "USAGE: `basename $0` ingest|help <args>"; exit;;
esac
-java -Xmx756m -Xms16m -cp classes/:lib/* $SCRIPT $@
+java -Xmx756m -Xms16m -cp $BASE/classes/:$BASE/lib/* $SCRIPT $@

0 comments on commit 021178b

Please sign in to comment.