You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/02/09 20:02:51 UTC

DO NOT REPLY [Bug 52632] JAVA_HOME incorrectly defined in ant shell script for Mac OS X 10.7 (Lion)

https://issues.apache.org/bugzilla/show_bug.cgi?id=52632

--- Comment #1 from ashirazi@codesherpas.com 2012-02-09 19:02:51 UTC ---
If the ant script must set a JAVA_HOME, I would suggest basing it on the
calculated JAVACMD. For example:

if [ -L "$JAVACMD" ]; then JAVA_HOME=`readlink "$JAVACMD"`/../..; else
JAVA_HOME="$JAVA_CMD"/../..; fi

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.