Cyriaque Dupoirieux <[EMAIL PROTECTED]> wrote:

>    I'd like to know which javac is used to compile when I use ant ?

This is not really related to the JAVA_HOME environment variable.

First, you can specify which flavor of compiler you want to use, Ant
currently supports four different version and you chose from them via
the property build.compiler (see the documentation of javac).

classic and modern will use Sun's compiler (or the compiler of a
different vendor, if that one comes first in the CLASSPATH and can be
run by invoking the class sun.tools.javac.Main or
com.sun.tools.javac.Main).

If you want to use a different compiler (I assume, you'd prefer the
one from Visual Cafe, and I don't know whether it fits the description
above) - there is no built-in support for it.  I vaguely remember
Diane Holt talked about an Adapter she had written.

Stefan

Reply via email to