ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [PATCH] support for -source option in javac (repost)
Date Wed, 19 Jun 2002 15:35:19 GMT
On Thu, 20 Jun 2002, <> wrote:

> Is this the expected behaviour for ant 1.4.1?

Given that even the current code does so, the answer is yes (and I'll
admit it's a bug).

> i.e. it passes a -source flag to the modern compiler when the
> compiler in fact doesn't support it....?

If you use "modern" and set the source attribute, the switch will be
set, yes.  The same is true for jikes as newer versions of jikes
support the switch.

I'll look into fixing it for the next 1.5beta, but there's no
workaround for 1.4.x, that I could see.

In 1.5 you can use nested compilerargs and make them conditional on
javac1.4 as a workaround.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message