On 2010-11-10, Eric Smith wrote:

> I am using gcj as my only jdk, so I am limited to using java
> 1.5. After installing ant-1.8.1, however, I am having problems
> building packages with ant because ant.java.version is set to 1.6. I
> have never had a jdk that supports java 1.6 on my system, so why would
> this be set like that?

Ant doesn't trust system properties and sets ant.java.version based on
the classes it can load.  Ant thinks it is running on JDK 1.6 if it can
find java.util.ServiceLoader which shouldn't be present if gcj really
only support Java5.

Is this causing trouble for you or is it just a cosmetic issue?  Ant's
trunk will detect gcj by now (but not use that information much) so we
could adapt the places where you are seeing problems right now.

Stefan

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

Reply via email to