ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r491423 - /ant/core/trunk/docs/manual/CoreTasks/javac.html
Date Sun, 31 Dec 2006 14:09:26 GMT
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>&lt;javac&gt;</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>&lt;javac&gt;</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>
+  &lt;property name="patched.javac.jar"
+            location="${my.patched.compiler}/dist/lib/javac.jar"/&gt;
+
+  &lt;presetdef name="patched.javac"&gt;
+    &lt;javac fork="yes"&gt;
+      &lt;compilerarg value="-J-Xbootclasspath/p:${patched.javac.jar}"/&gt;
+    &lt;/javac&gt;
+  &lt;/presetdef&gt;
+
+
+  &lt;patched.javac srcdir="src/java" destdir="build/classes"
+                 debug="yes"/&gt;
+</pre></blockquote>
 
 
 </body>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message