Hans,

On Fri, 2009-09-11 at 10:46 +0200, Hans Dockter wrote:
> Hi Russel,
> 
> On Sep 8, 2009, at 3:42 PM, Russel Winder wrote:
> 
> > I know I should know this but . . .
> >
> > How to set the -Xlint:unchecked option for Java compilation when using
> > the joint compiler via the Groovy plugin?
> 
> Try: compile.options.fork(jvmArgs: ['-Xlint:unchecked'])

This doesn't work I'm afraid.  First I got a message about the -Xlint:
being a faulty map key so I tried

        compile.options.fork(jvmArgs: ['"-Xlint:unchecked"'])

which got rid of that problem but left me with:

        Cause: javac doesn't support the "jvmArgs" attribute

The javac task nested tag has to be compilerarg I believe.

> I had no opportunity to try it myself. Please give feedback whether  
> this works for you. What the above should do, is to pass this as an  
> argument to the inner javac element of the groovyc ant task.
> 
> - Hans
> 
> --
> Hans Dockter
> Gradle Project Manager
> http://www.gradle.org

-- 
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

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

Reply via email to