This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Kawa Java5 support and new configure flag --with-java-source
- From: Per Bothner <per at bothner dot com>
- To: Kawa <kawa at sources dot redhat dot com>
- Date: Sat, 06 Nov 2004 18:31:10 -0800
- Subject: Kawa Java5 support and new configure flag --with-java-source
I've checked into CVS:
A new configure switch --with-java-source=VERSION allows you to tweak
the Kawa sources to match Java compiler and libraries you're using.
The default (and how the sources are distributed) is "2" (for "Java 2"
- jdk 1.2 or better), but you can also select "1" (for jdk 1.1.x), and
"5" for Java 5 (jdk 1.5). You can also specify a jdk version number:
"1.4.1" is equivalent to "2" (for now). Note the default source-base
is incompatible with Java 5 (or more generally JAXB 1.3 or DOM 3),
unless you also --disable-xml.
(Making the same code-base work for both DOM 3 and DOM 2 would be
difficult, since DOM 3 adds new methods to various interfaces that Kawa
implements, and some of the new methods have parameter or result types
that are not in DOM 2.)
A future enhancement could pick a default value of VERSION based on
running 'java -version', but I'm somewhat leary of that.
The Ant-based build.xml has not been updated yet.
--
--Per Bothner
per@bothner.com http://per.bothner.com/