You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by Paul Henry <pa...@futrix.com> on 2015/09/09 01:45:40 UTC
No javac Compiler Warnings with javac nested in groovyc
Hi All,
We have recently moved to a joint compile of our Java and Groovy code base
in our Ant build scripts as expanded use of Groovy introduced
bi-directional dependencies between the Groovy and Java code.
The code is compiled successfully. However as a result of nesting javac
inside groovyc the compilation doesn't spit out the Java compiler warnings
anymore.
our Ant directive looks something like
<groovyc destdir="${src.bin.dir}">
<src path="${src.dir}"/>
<classpath>
<path location="${project.libs.path}"/>
</classpath>
<!-- The Javac command inherits the destdir, src path, and
classpath from the enclosing groovyc task -->
<javac debug="true"
source="1.6"
target="1.6">
<compilerarg line="-Xlint:all -Xmaxwarns 10000" />
</javac>
</groovyc>
Ideally i would like the compilation to spit out the same set of compiler
warnings i would get from running groovyc and javac seperately over the
code base.
Is anyone able to assist with this.
( We were feeding those compiler warnings into the Jenkins Warnings
plugin... yes while no compiler warnings looks great, its not really
accurate )
Cheers
- Paul
Paul Henry
Senior Technical Developer.
Futrix Ltd.
79 Boulcott Street, Level 2, Wellington 6011, New Zealand
<https://maps.google.com/maps?q=79+Boulcott+Street,+Level+2,+Wellington+6011,+New+Zealand>
.
tel +64 4 499 1327
www.futrix.com