dev@glassfish.java.net

Re: decision w.r.t. Java class version for GFv3-trunk sources ...

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Thu, 19 Feb 2009 21:23:08 -0800

Rajiv Mordani wrote:
>
>
> Bill Shannon wrote:
>> Kedar Mhaswade wrote:
>>> An issue might arise when we want to build all of GFv3 including external
>>> dependencies from source (read Ubuntu build). In that case, we might
>>> need both Java 5, 6 in the PATH and I don't know how maven plugin can
>>> take it into account. I think this is mostly handled by using JDK 6 javac
>>> and using -target as 1.5 for those modules.
>>
>> I don't think we've tried to enforce any sort of "common build environment"
>> that encompasses all the independently developed modules that feed into
>> GlassFish.
>
> I don't think that the problem is for the separate modules. As I understand
> it, there are some components that reside in the GlassFish svn repo that we
> want to enable running with JDK 5. I am not sure which ones though and hence
> I asked the question about the list of modules.

It's easy enough to configure those modules to use "-source 1.5 -target 1.5",
but if you *really* want them to work with JDK 5, I strongly suggest that
they be built separately using JDK 5.