Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>From the <a href="http://ant.apache.org/manual/Tasks/javac.html" rel="nofollow">javac task page</a>:</p> <blockquote> <p>It is possible to use different compilers. This can be specified by either setting the global build.compiler property, which will affect all tasks throughout the build, by setting the compiler attribute, specific to the current task or by using a nested element of any typedeffed or componentdeffed type that implements org.apache.tools.ant.taskdefs.compilers.CompilerAdapter. Valid values for either the build.compiler property or the compiler attribute are:</p> <ul> <li><code>classic</code> (the standard compiler of JDK 1.1/1.2) – javac1.1 and javac1.2 can be used as aliases. </li> <li><code>modern</code> (the standard compiler of JDK 1.3/1.4/1.5/1.6/1.7) – javac1.3 and javac1.4 and javac1.5 and javac1.6 and javac1.7 (since Ant 1.8.2) can be used as aliases. </li> <li><code>jikes</code> (the Jikes compiler). </li> <li><code>jvc</code> (the Command-Line Compiler from Microsoft's SDK for Java / Visual J++) – microsoft can be used as an alias. </li> <li><code>kjc</code> (the kopi compiler). </li> <li><code>gcj</code> (the gcj compiler from gcc). </li> <li><code>sj</code> (Symantec java compiler) – symantec can be used as an alias. </li> <li><code>extJavac</code> (run either modern or classic in a JVM of its own). </li> </ul> </blockquote> <p>The way I read this, you need to write a class that implements CompilerAdapter and uses your compiler. Then typedef that task and use it in the javac compiler attribute.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload