Hans, Roshan has sorted this out in Groovy now so yes, with Gant and Ant things work as required. I really though the way of getting the -Xlint parameter to the nested javac with Gradle. I just tried:
compile.compilerArgs = ['-Xlint']
and it doesn't do anything.
On Fri, 2009-09-18 at 10:00 +0200, Hans Dockter wrote:
> Could you try this with the Ant groovyc task and see if it works there?
>
> - Hans
>
> --
> Hans Dockter
> Gradle Project Manager
> http://www.gradle.org
>
> On Sep 13, 2009, at 5:25 PM, Russel Winder wrote:
>
> > On Sun, 2009-09-13 at 14:19 +0200, Hans Dockter wrote:
> >> On Sep 12, 2009, at 2:25 PM, Russel Winder wrote:
> > [ . . . ]
> >>> 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']
> >
> > I thought I had, but I tried again:
> >
> > compile.compilerArgs = ['-Xlint:unchecked']
> >
> > but nothing gets put into the call of FileSystemCompiler:
> >
> >
> > 16:23:41.399 [main] DEBUG
> > org.gradle.logging.AntLoggingAdapter -
> > Execute:Java13CommandLauncher: Executing '/usr/lib/jvm/java-6-
> > sun-1.6.0.16/jre/bin/java' with arguments:
> > '-classpath'
> > '/home/users/russel/.gradle/cache/org.codehaus.groovy/groovy-
> > all/jars/groovy-all-1.7-beta-2-SNAPSHOT.jar:/home/users/
> > russel/.gradle/cache/org.coconut.forkjoin/jsr166y/jars/
> > jsr166y-070108.jar:/home/users/russel/.gradle/cache/org.jboss.netty/
> > netty/jars/netty-3.1.3.GA.jar:/home/users/russel/.gradle/wrapper/
> > dists/gradle-0.8-20090909075009+0200/lib/ant-1.7.0.jar:/home/users/
> > russel/.gradle/wrapper/dists/gradle-0.8-20090909075009+0200/lib/ant-
> > launcher-1.7.0.jar'
> > 'org.codehaus.groovy.tools.FileSystemCompiler'
> > '--classpath'
> > '/home/users/russel/.gradle/cache/org.codehaus.groovy/groovy-
> > all/jars/groovy-all-1.7-beta-2-SNAPSHOT.jar:/home/users/
> > russel/.gradle/cache/org.coconut.forkjoin/jsr166y/jars/
> > jsr166y-070108.jar:/home/users/russel/.gradle/cache/org.jboss.netty/
> > netty/jars/netty-3.1.3.GA.jar:/home/users/russel/.gradle/wrapper/
> > dists/gradle-0.8-20090909075009+0200/lib/ant-1.7.0.jar:/home/users/
> > russel/.gradle/wrapper/dists/gradle-0.8-20090909075009+0200/lib/ant-
> > launcher-1.7.0.jar'
> > '-j'
> > '-Fg'
> > '-Jsource=1.5'
> > '-Jtarget=1.5'
> > '-d'
> > '/home/users/russel/Repositories/Bazaar/SharedRepositories/
> > GParallelizer/Working/build/classes/main'
> > . . .
> >
> > --
> > 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
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
