On 1/20/06 7:47 AM, "John Wells" <[EMAIL PROTECTED]> wrote:

> 
> From the same source files, I want to produce two jar files.  Here are
> the requirements:
> 
> 1.  One JAR file would contain all the sources compiled with J2SE 5.0
> 2.  One JAR file is for clients, and must be compiled with J2SE 1.4
> 
> Imagine the following packages:
> 
> org.whatever.common    <----- These files are in both jars
> org.whatever.server    <----- These files are only on the server
> org.whatever.client    <----- These files are in both jars too
> 
> The trick here is that the files in the "common" and "client" packages
> need to be compiled twice:  once for the client JAR (1.4) and once for
> the server JAR (5.0).  However, they are the same sources in either
> case.

You can load classes compiled with 1.4 in 5.0, so why not just compile the
common and client packages with 1.4 and the server packages with 5.0?

There's no real need for consistency, is there? You can't be using Java 5
features in your common or client packages or they wouldn't compile in 1.4.

(BTW, I *really* like Java 5. We've been doing all our new development using
it.)

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to