ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <profk...@yahoo.com>
Subject Re: compiling Java 1.1 projects [was: two diff't JDKs]
Date Wed, 29 Oct 2003 15:42:39 GMT

--- Antoine_Levy-Lambert <antoine@antbuild.com> wrote:
> Hi Erik,
> 
> you are absolutely right. If fork="no" and compiler="classic", then
> the
> compiler of the current runtime will be called with 1-1 style
> switches.
> 
> So something must be done to the code so that the 1-1 compiler can be
> called
> with fork="true" and a current runtime java >= 1.2



I'm not sure that I understand the logic behind this:  In
Javac.compile(), the CompilerAdapterFactory returns the appropriate
type of CompilerAdapter to use for the current script, which makes
sense.  In my case, it returns a JavacExternal because I have specified
fork="true".  However, in line 78 of JavacExternal.java (in Ant 1.5.4
source code), the JavacExternal then determines the executable to use
by querying getJavacExecutable(), which is in JavacExternal's
superclass Javac.  Then, this method returns the system Javac if
fork="true".

So it seems that what needs to be fixed [first] is
Javac.getJavacExecutable(), unless I'm misreading this somehow.


Erik

=====
-- 
Copyright.  Copy right.
The right to copy.  That's all it is.
Contrary to popular belief, there's no such thing as intellectual "property".

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message