|
|
@@ -334,6 +334,14 @@ invoking the compiler.</p> |
|
|
|
will fail the build; defaults to <code>true</code>.</td> |
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td valign="top">errorProperty</td> |
|
|
|
<td valign="top"> |
|
|
|
The property to set (to the value "true") if compilation fails. |
|
|
|
<em>Since Ant 1.7.1</em>. |
|
|
|
</td> |
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td valign="top">source</td> |
|
|
|
|
|
|
@@ -381,6 +389,16 @@ invoking the compiler.</p> |
|
|
|
No; default is <i>java.io.tmpdir</i>. |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td valign="top">updatedProperty</td> |
|
|
|
<td valign="top"> |
|
|
|
The property to set (to the value "true") |
|
|
|
if compilation has taken place |
|
|
|
and has been successful. |
|
|
|
<em>Since Ant 1.7.1</em>. |
|
|
|
</td> |
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
|
|
|
|
<h3>Parameters specified as nested elements</h3> |
|
|
@@ -666,6 +684,32 @@ while all others are <code>false</code>.</p> |
|
|
|
<code>build.compiler.jvc.extensions</code> to false before invoking |
|
|
|
<code><javac></code>.</p> |
|
|
|
|
|
|
|
<h3>OpenJDK Notes</h3> |
|
|
|
<p> |
|
|
|
The <a href="https://openjdk.dev.java.net/">openjdk</a> |
|
|
|
project has provided the javac |
|
|
|
<a href="https://openjdk.dev.java.net/compiler/">compiler</a> |
|
|
|
as an opensource project. The output of this project is a |
|
|
|
<code>javac.jar</code> which contains the javac compiler. |
|
|
|
This compiler may be used with the <code><javac></code> task with |
|
|
|
the use of a "-Xbootstrapclass/p" java argument. The argument needs |
|
|
|
to be given to the runtime system of the javac executable, so it needs |
|
|
|
to be prepended with a "-J". For example: |
|
|
|
|
|
|
|
<blockquote><pre> |
|
|
|
<property name="patched.javac.jar" |
|
|
|
location="${my.patched.compiler}/dist/lib/javac.jar"/> |
|
|
|
|
|
|
|
<presetdef name="patched.javac"> |
|
|
|
<javac fork="yes"> |
|
|
|
<compilerarg value="-J-Xbootclasspath/p:${patched.javac.jar}"/> |
|
|
|
</javac> |
|
|
|
</presetdef> |
|
|
|
|
|
|
|
|
|
|
|
<patched.javac srcdir="src/java" destdir="build/classes" |
|
|
|
debug="yes"/> |
|
|
|
</pre></blockquote> |
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
|
|