# ant-dev mailing list archives

##### Site index · List index
Message view
Top
From detlef.bren...@canoo.com
Subject Re: javac with different Java compilers.
Date Wed, 19 Dec 2001 07:16:34 GMT
hi stefan ,
using the suggested fork parameter instead of 'true' doesnt do any good to me.
if I specify a location where there is no javac such as
fork="c:/develop/java/jdk1.3.1/imaginary/javac"
it still uses 'some' other javac compiler instead.
I need to find out where it gets the location from.

detlef,

btw: Im using ant 1.4.1 and the fork field still is boolean.

Quoting Stefan Bodewig <bodewig@apache.org>:

> On Tue, 18 Dec 2001, detlef brendle <detlef.brendle@canoo.com> wrote:
>
> > b. if I run it externally it still wont use the correct JAVA_HOME
> > environment.
>
> fork="your\path\to\javac" should work.  The documentation needs an
> update, but if you use something different than
> on/off/yes/no/true/false,
> Ant will assume it is the full path to the compiler.
>
> Now you will want to set the include*runtime attributes to false and
> take complete control over your classpath.
>
> Stefan
>
> --
> To unsubscribe, e-mail:
> <mailto:ant-dev-unsubscribe@jakarta.apache.org>