Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.6.4, 1.7-beta-1
-
Component/s: Ant integration
-
Labels:None
-
Environment:Groovy 1.6.0, Ant 1.7.1, Java 1.5.0_16, Windows XP.
-
Number of attachments :
Description
With Groovy 1.5.1 I used the 'deprecation' attribute on <javac> nested within the <groovyc> Ant task to have the compiler spit out deprecated API warnings:
<groovyc ...>
...
<javac deprecation="$
" .../>
</groovyc>
I'm trying to upgrade to Groovy 1.6.0 but it complains that 'deprecation' is no longer a supported attribute on <javac> (within <groovyc> that is - it still works fine from a regular <javac> call). If I invoke groovyc from AntBuilder (within a <groovy> element in my Ant script), the error goes away but the attribute has no effect. I can't find any way to get my deprecation warnings back.
I also tried using jointCompilationOptions as currently documented at http://groovy.codehaus.org/The+groovyc+Ant+Task:
jointCompilationOptions="-j -Fdeprecation -Fg -Jsource=1.4 -Jtarget=1.4"
...but it looks like this has been removed in Groovy 1.6.0 as I get the following error message:
> groovyc doesn't support the "jointcompilationoptions" attribute