On Tue, 2009-10-06 at 08:25 +0100, Russel Winder wrote:
> In the ~/.gradle/gradle.properties file there are lines such as:
>
> gradle_installPath = /${user.home}/lib/JavaPackages/gradle-trunk
>
> but when the Gradle script is executed the value is returned as a String
> not an expanded GString. What is the canonical way in Gradle to get an
> evaluation so as to interpret as a GString?
>
> Thanks.
OK, I think I just sussed this out. This is not a GString, it is a
String. Expansion of the variables is an Ant thing, using this form in
the Gradle build relies of the AntBuilder being the executor of the
copying in the Gradle install.
I think this may mean that the code in the build.gradle file does not do
what people might think it does since the variable is not expanded at
the time of executing the Groovy code so all file activity is being
undertaken on the uninterpreted string.
I guess I should turn this into a bug report.
--
Russel.
=============================================================================
Dr Russel Winder Partner
xmpp: [email protected]
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 skype: russel_winder
signature.asc
Description: This is a digitally signed message part
