Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CF1417D8E for ; Tue, 8 Sep 2015 23:45:54 +0000 (UTC) Received: (qmail 72593 invoked by uid 500); 8 Sep 2015 23:45:54 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 72563 invoked by uid 500); 8 Sep 2015 23:45:54 -0000 Mailing-List: contact users-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.incubator.apache.org Delivered-To: mailing list users@groovy.incubator.apache.org Received: (qmail 72550 invoked by uid 99); 8 Sep 2015 23:45:54 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2015 23:45:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B31AF1A0970 for ; Tue, 8 Sep 2015 23:45:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BLzVMKbMNJHZ for ; Tue, 8 Sep 2015 23:45:47 +0000 (UTC) Received: from mail-yk0-f171.google.com (mail-yk0-f171.google.com [209.85.160.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 93C6C42B13 for ; Tue, 8 Sep 2015 23:45:47 +0000 (UTC) Received: by ykei199 with SMTP id i199so144663806yke.0 for ; Tue, 08 Sep 2015 16:45:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=tKvJqs3hoUn5QyLl/JYDWKnY8NdZecyKfRUQGeFx6ME=; b=WSrQpTzOK3v7/sJzIzS8Oqo6tGYBlv+gL/HMosN5K4a2zgfpgBhjD3ucY75fTyObar PW+Giwzd3bJpNzfzSSzgal9tsWXsRjUM8G6Ir/VoVlpIx+f8FeE8K2FnLXPTctub+myW AACg02nirEg7ZeSwxiZDumPODoFdGzw1+4wDBYAGzLFSo2ttqNG/sfrHBJs07XPevGq4 bsoUTKUeBW+wry/tVrqwV4R0CYxp3UwXkmpdhbRn+Is9HCjDzyq1ASzZujahA4qZtFhQ SkYkGVOqXZr9mAxlhQUXdDbJANNpE6Pk0yzOmCGln2s7TwYfBjH2HyiPjlud/mGRNhB6 E/PQ== X-Gm-Message-State: ALoCoQl1KTXf9DkqVDA9x7lokuInGJQa8MUA8DpGwbschpS9BZRzsHyJ9RNLUKIe7Q88HeMg3vkt MIME-Version: 1.0 X-Received: by 10.170.187.72 with SMTP id d69mr32850436yke.25.1441755940986; Tue, 08 Sep 2015 16:45:40 -0700 (PDT) Received: by 10.103.89.201 with HTTP; Tue, 8 Sep 2015 16:45:40 -0700 (PDT) Date: Wed, 9 Sep 2015 11:45:40 +1200 Message-ID: Subject: No javac Compiler Warnings with javac nested in groovyc From: Paul Henry To: users@groovy.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1142248eb75537051f44f6ae --001a1142248eb75537051f44f6ae Content-Type: text/plain; charset=UTF-8 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 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 . tel +64 4 499 1327 www.futrix.com --001a1142248eb75537051f44f6ae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

We have recently moved to a joi= nt compile of our Java and Groovy code base in our Ant build scripts as exp= anded use of Groovy introduced bi-directional dependencies between the Groo= vy and Java code.

The code is compiled successfull= y. However as a result of nesting javac inside groovyc the compilation does= n't spit out the Java compiler warnings anymore.

our Ant directive looks something like

=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <groovyc destdir=3D"${src.bi= n.dir}"> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 <src path=3D"${src.dir}"/> =C2=A0 = =C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <classpath= >
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 <path location=3D"${project.libs.path}"/>
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </classpath&= gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- The Javac command inherit= s the destdir, src path, and classpath from the enclosing groovyc task --&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <ja= vac debug=3D"true"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0source=3D"1.6"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0target=3D"1.6">
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <compilerarg line= =3D"-Xlint:all -Xmaxwarns 10000" />
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </javac> =C2=A0 =C2=A0 =C2= =A0 =C2=A0=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </groovy= c>

Ideally i would like the compilation t= o spit out the same set of compiler warnings i would get from running groov= yc and javac seperately over the code base.

Is any= one able to assist with this.=C2=A0

( We were feed= ing those compiler warnings into the Jenkins Warnings plugin... yes while n= o compiler warnings looks great, its not really accurate )

Cheers=C2=A0

- Paul


=C2=A0

P= aul Henry=C2=A0
Senior Technical Developer.

Futrix Ltd.
79 Boulcott Street, Level 2, Wellington 6011= , New Zealand.=C2=A0
tel=C2= =A0+64 4 499 1327
www.futrix.com= =C2=A0


--001a1142248eb75537051f44f6ae--