Browse Source

Set JAVA_HOME for OS/X. (PR 8503)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272594 13f79535-47bb-0310-9956-ffa450edef68
master
Diane Holt 23 years ago
parent
commit
e0281ea5e0
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/script/ant

+ 5
- 2
src/script/ant View File

@@ -26,7 +26,11 @@ cygwin=false;
darwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
Darwin*) darwin=true ;;
Darwin*) darwin=true
if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi
;;
esac

if [ -z "$ANT_HOME" ] ; then
@@ -145,7 +149,6 @@ if [ -n "$JAVA_HOME" ] ; then
done
fi
fi

else
echo "Warning: JAVA_HOME environment variable is not set."
echo " If build fails because sun.* classes could not be found"


Loading…
Cancel
Save