error from ant script

Alexander Kurtakov akurtako at redhat.com
Mon Mar 23 18:01:52 UTC 2009


On Monday 23 March 2009 18:53:10 Subhodip Biswas wrote:
> hi!
>
> While trying to package JOSM which is java based and uses ant to compile.
> ant when called from rpmbuild fails to compile the code saying :
> ------
> static import declarations are not supported in -source 1.4
>     [javac] (try -source 1.5 to enable static import declarations)
> ------
> However executing ant separately on source leads to successful compilation.
> ----
> What am i missing?
Try to call ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 
your_targets instead of only ant.
This will set both source and target to 1.5.

Regards,
Alexander Kurtakov 

>
> --
> Regards
> Subhodip Biswas
>
> GPG key : FAEA34AB
> Server : pgp.mit.edu
> http://subhodipbiswas.wordpress.com
> http:/www.fedoraproject.org/wiki/SubhodipBiswas




More information about the fedora-devel-list mailing list