ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Holdener <ste...@mail.amnesiac.net>
Subject Re: Setting environment variables for a javac task
Date Thu, 21 Feb 2002 22:49:09 GMT
> Believe it or not, I read the docs.  Unfortunately, I found them pretty
> vague.  For example, how does ant find the compiler you specify?

It uses JAVA_HOME and PATH, I believe.  In fact, Ant requires JAVA_HOME 
to be set before it'll do anything.

We use jikes, so we have to make sure everyone has "C:\jikes\bin" in the 
PATH.  I'm not sure what's happening inside Ant, but my first guess 
would be that it simply attempts to execute the compiler in a manner 
sutiable for the platform.  For instance, "jikes" would be invoked as 
"jikes.exe" on Windows but just plain "jikes" on *nix.


> What if
> the specified compiler is not available?  

Well, here's what my output looks like if I rename jikes.exe to 
jikesFOO.exe...



<snip>

compile.library:
     [javac] Compiling 231 source files to 
C:\rates_view\rps_vob\rnr\out\library\classes

BUILD FAILED

C:\rates_view\rps_vob\rnr\build.xml:381: Error running jikes compiler

</snip>



-Steve


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


Mime
View raw message