diff --git a/docs/manual/CoreTasks/javac.html b/docs/manual/CoreTasks/javac.html index 5aabb1b7b..29d3ed1c3 100644 --- a/docs/manual/CoreTasks/javac.html +++ b/docs/manual/CoreTasks/javac.html @@ -334,6 +334,14 @@ invoking the compiler.

will fail the build; defaults to true. No + + errorProperty + + The property to set (to the value "true") if compilation fails. + Since Ant 1.7.1. + + No + source @@ -381,6 +389,16 @@ invoking the compiler.

No; default is java.io.tmpdir. + + updatedProperty + + The property to set (to the value "true") + if compilation has taken place + and has been successful. + Since Ant 1.7.1. + + No +

Parameters specified as nested elements

@@ -666,6 +684,32 @@ while all others are false.

build.compiler.jvc.extensions to false before invoking <javac>.

+

OpenJDK Notes

+

+ The openjdk + project has provided the javac + compiler + as an opensource project. The output of this project is a + javac.jar which contains the javac compiler. + This compiler may be used with the <javac> 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: + +

+  <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"/>
+