SCM-Manager: set JAVA_HOME

Closes Homebrew/homebrew#17789.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
DrQ 2013-02-12 05:27:03 -08:00 committed by Adam Vandenberg
parent ef0bc1e077
commit bb021f1e45
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class ScmManager < Formula
#!/bin/bash
BASEDIR="#{libexec}"
REPO="#{libexec}/lib"
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
"#{libexec}/bin/scm-server" "$@"
EOS
chmod 0755, bin/'scm-server'