You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2006/12/31 15:09:26 UTC
svn commit: r491423 - /ant/core/trunk/docs/manual/CoreTasks/javac.html
Author: peterreilly
Date: Sun Dec 31 06:09:25 2006
New Revision: 491423
URL: http://svn.apache.org/viewvc?view=rev&rev=491423
Log:
add doc for updateProperty and errorProperty, add note for openjdk
Modified:
ant/core/trunk/docs/manual/CoreTasks/javac.html
Modified: ant/core/trunk/docs/manual/CoreTasks/javac.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/javac.html?view=diff&rev=491423&r1=491422&r2=491423
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/javac.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/javac.html Sun Dec 31 06:09:25 2006
@@ -335,6 +335,14 @@
<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>
<td valign="top">Value of the <code>-source</code> command-line
@@ -381,6 +389,16 @@
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 @@
<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>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org