forked from openkylin/platform_build
am 8969167d: am bd960940: Ignore STAY_OFF_MY_LAWN when setting JAVA_HOME.
Merge commit '8969167db684ebdbfe72dd57aea7f7bdd5de8064' * commit '8969167db684ebdbfe72dd57aea7f7bdd5de8064': Ignore STAY_OFF_MY_LAWN when setting JAVA_HOME.
This commit is contained in:
commit
d3e1d0e960
20
envsetup.sh
20
envsetup.sh
|
@ -1068,17 +1068,15 @@ function godir () {
|
|||
|
||||
# Force JAVA_HOME to point to java 1.6 if it isn't already set
|
||||
function set_java_home() {
|
||||
if [ "$STAY_OFF_MY_LAWN" = "" ]; then
|
||||
if [ ! "$JAVA_HOME" ]; then
|
||||
case `uname -s` in
|
||||
Darwin)
|
||||
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
|
||||
;;
|
||||
*)
|
||||
export JAVA_HOME=/usr/lib/jvm/java-6-sun
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! "$JAVA_HOME" ]; then
|
||||
case `uname -s` in
|
||||
Darwin)
|
||||
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
|
||||
;;
|
||||
*)
|
||||
export JAVA_HOME=/usr/lib/jvm/java-6-sun
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue