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 totrue
.
false
.
build.compiler.jvc.extensions
to false before invoking
<javac>
.
+
+ 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"/> +