Gradle Home determination

View: New views
1 Messages — Rating Filter:   Alert me  

Gradle Home determination

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Whilst waiting for a synchronization, I thought I would take a quick
look at the Gradle Ant task to try and get some movement on that.  Apart
from not having any tests yet :-( the problem of the moment is how to
know where Gradle Home is in order to initiate a GradleLauncher
instance.

The StartParameter constructor says it gives all the fields default
values.  Unfortunately it appears not to give a reasonable default value
for the Gradle Home, this has to be set manually.  So the question is
what is the best way of discovering the Gradle Home to use -- given that
in an Ant context there isn't actually a Gradle Home, just the Gradle
jar in the path so as to create the gradle Ant task.

Thanks.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment