On Sep 12, 2009, at 2:25 PM, Russel Winder wrote:
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.
Of course. Did it work for you with using the compilerArgs argument?
compile.compilerArgs = ['-Xlint:unchecked']
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email