ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Burton" <bi...@progress.com>
Subject Re: How to specify the location of the compiler ?
Date Tue, 13 Feb 2001 22:26:36 GMT
Larry Strollo wrote:
> 
>     Stefan> As far as I understand, Ant uses the PATH environment settings
>     Stefan> to execute the compiler. Is there a possibility to define the
>     Stefan> location of the compiler in the build or property file ?
> 
> I just got bit by that.  I set my JAVA_HOME to jdk 1.3.  I was a little
> disappointed to see that the ant.bat file (I'm using Win2000) checked for
> JAVA_HOME, but did not prepend JAVA_HOME/bin to the java command used to
> compile.

Correct for Ant 1.2.  This has been fixed in 1.3b1 such that unless you
set JAVACMD explicitly, Ant will be started using JAVA_HOME/bin/java by
default.

-Bill

Mime
View raw message