Hans,

On Mon, 2009-05-11 at 22:09 +0200, Hans Dockter wrote:

> Ant and Maven and many other Java tools request you to define  
> JAVA_HOME. We are in the same line here. Although I am a Mac OS X  
> user, I'm not an expert in how the Mac determines the default Java  
> version, if multiple versions are installed. For many people it is  
> important to set JAVA_HOME for using Gradle with a defined JDK. Our  
> build script does some effort to set JAVA_HOME if it is not explicitly  
> defined. To be honest, we took those mechanisms from the Groovy start  
> up script. You may define a Jira and some Mac expert might eventually  
> provide a fix.

Debian/Ubuntu, Solaris and Mac OS X (possibly others but these are the
ones I know) have a mechanism for defining a default Java installation.
So if the user doesn't define a JAVA_HOME, there is a well defined
algorithm for testing to see if there is a Java installation.  This
algorithm is encoded in the Groovy startup sequence (sort of).  If there
is an issue then it needs raising for Groovy, Gradle and Gant.

I can probably take responsibility for this.

(I wonder if I should add Buildbots for Gradle Trunk for Ubuntu, Solaris
and Mac OS X builds?  Would it serve any useful purpose?)

-- 
Russel.
============================================================
Dr Russel Winder                 Partner

Concertant LLP          t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,     f: +44 8700 516 084    voip:  
sip:[email protected]
London SW11 1EN, UK.    m: +44 7770 465 077    xmpp: [email protected]

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to