ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 52632] JAVA_HOME incorrectly defined in ant shell script for Mac OS X 10.7 (Lion)
Date Fri, 24 Aug 2012 18:51:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52632

--- Comment #5 from ashirazi@codesherpas.com ---
Keep in mind that you want to configure JAVA_HOME and JAVACMD using the same
mechanisms.

JAVA_HOME="`/usr/libexec/java_home`"
JAVACMD="$JAVA_HOME/bin/java"

or

JAVACMD="`which java 2> /dev/null `"
JAVA_HOME="$JAVACMD/../.."
# Note I have left out logic to identify and follow symlinks here

The point is they should be consistent, since the java configured on the path
may be different from that configured OS-wide.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message