db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <Richard.Hille...@Sun.COM>
Subject Re: Requiring Java 5 compiler
Date Fri, 21 Sep 2007 20:15:15 GMT
Hi Bryan,

I was thinking of something even simpler, but I don't know if this will 
work for you. Let me know if this is too simple:

o Joe Developer has to install Java 5 on his machine.

o The shell window which runs the build has to be running with Java 5 or 
higher. That is, $JAVA_HOME needs to point at a Java 5 or Java 6 
installation and when you type javac in that shell window, this should 
resolve to the corresponding (Java 5 or Java 6) compiler.

Will this work for you?


Bryan Pendleton wrote:
>> Thanks, Bryan. I was thinking of wiring a check into the "init" 
>> target of the top level build.xml. The build would fail if the 
>> compiler wasn't advanced enough. Would that satisfy your build 
>> requirements?
> Sure, that sounds good!
> I'm thinking out loud here, but my expectation is that, once you've
> made your change, the impact on me ("Average Joe Derby Developer") is:
>  - I have to install Java 1.5 on my machine if I haven't already
>  - I have to add the line
>        j15lib=/path/to/java1.5/jre/lib
>    into my ant.properties
>  - I can continue using the same ant.properties for all my 10.2, 10.3,
>    and trunk builds
>  - I use the same build commands (ant 
> clobber/all/buildjars/junitreport/etc)
>    that I currently use
>  - If I do either of the first two steps wrong, I get a friendly message.
> Is that more or less the way you envision this? If so, sounds fine to me!
> thanks,
> bryan

View raw message