I suspect I have just failed to understand the way in which compiler
parameters are processed by Gradle and thence by the Groovy joint
compiler.

If I have:

        compileGroovy.options.compilerArgs = [ '-Xlint' ]

then the string gets transformed into a -F option in the construction of
the java command that invokes the Groovy joint compiler.  It seems to
work.

I therefore tried:

        compileGroovy.options.compilerArgs = [ '-Xlint' , '-encoding' ,
'UTF-8' ]

as I wish to enforce that the source code is UTF-8 encoded rather than
being ASCII which is the default in the absence of LOCALE environment
variables.  This however fails to do anything useful :-(

Is there a way of enforcing an encoding without resorting to using
environment variables?

Thanks.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

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

Reply via email to