----- Original Message -----
From: "Tim Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 03:02
Subject: How to use more than one compiler during build of a project?


> Hi
>
> I am probably misunderstanding the way that an ant build works, but here
> goes.
>
> I wish to use both the 'modern' compiler and the 'jikes' compiler for
> different targets (don't ask why - it's necessary due to some problems
with
> both :).
>
> However, it only seems to be possible to set a property (in this case
> build.compiler) once, so as soon as I set it (to one of the above values)
> its stays that way, ignoring the <property> task that tries to change it.
>
> The documentation and the source Property.java indicates that it is
because
> the property is a 'user' property. or because it is a property in the
> project object.
>
> What is this about?
>
> Does all this mean that I have to write a new javac (subclassing the
> existing one) just to do this simple thing?

what it really means is that up till now compiler selection has been a
per-build process, often on a user by user basis.

To fix it, I would recommend adding a new attribute to the task, "compiler",
which allowed you to override the build.compiler section. This would benefit
many other people too.

-steve


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

Reply via email to