Permalink
Browse files

Merge pull request #23 from rhwood/master

Use non-default JVM
  • Loading branch information...
2 parents 86915a6 + df2f066 commit 9f4894aaeae8c09078400346b27d0e6d7e80dbef @tlrobinson tlrobinson committed May 17, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/narwhal
View
5 bin/narwhal
@@ -26,6 +26,11 @@ if [ -f "narwhal.local.conf" ]; then
source "narwhal.local.conf"
fi
+# if JAVA_HOME is set, prepend JAVA_HOME/bin to PATH so correct JVM is used
+if [ -d "$JAVA_HOME" ]; then
+ export PATH=$JAVA_HOME/bin:$PATH
+fi
+
if [ -n "$NARWHAL_DEBUG" ]; then
export NARWHAL_DEBUG
fi

0 comments on commit 9f4894a

Please sign in to comment.