[fedora-java] Eclipse 3.2M5 and ant.java.version

Gary Benson gbenson at redhat.com
Mon Feb 20 10:33:04 UTC 2006


Andrew Haley wrote:
> Gary Benson writes:
> > Andrew Haley wrote:
> > > Andrew Overholt writes:
> > > > So with a simple test.xml [2], we get:
> > > > 
> > > >      [echo] java.version is 1.5
> > > > 
> > > > Is there a way we can get around this without patching ant
> > > > or removing the 1.5 class library stuff from libgcj?
> > > 
> > > Suggest we patch ant to use System.getProperty("java.version")
> > > and push that patch upstream.
> > 
> > Presumably there's a reason they don't already do this.
> 
> I looked at the history of that file, and they have never done this.
> There's no explanation as to why.

The version detection was moved from org.apache.tools.ant.Project,
where it has been since the initial CVS import over six years ago.
I guess the reason for it is lost in the mists of time...

Cheers,
Gary




More information about the fedora-devel-java-list mailing list