ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: ant.java.version set incorrectly
Date Thu, 11 Nov 2010 20:38:52 GMT
On 2010-11-10, Eric Smith wrote:

> The problem I'm running into is that Xerces-J uses ant.java.version to
> set which source level to build. Without patching its build.xml, I end
> up with this:

> compile:
> [copy] Copying 23 files to /var/tmp/paludis/build/dev-java-Xerces-J-2.10.0/work/xerces-2_10_0/build/classes
> [xjavac] Compiling 704 source files to /var/tmp/paludis/build/dev-java-Xerces-J-2.10.0/work/xerces-2_10_0/build/classes
> [xjavac] Compliance level '1.5' is incompatible with source level '1.6'. A compliance
level '1.6' or better is required

I see.

> Correcting ant.java.version would probably be the best fix.

But what if future versions of gcj fully support Java 6?

Another option could be to use a different class to detect Java6, one
that isn't present in gcj right now.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message