From 3560219844a0dc36cd31882495f3daa41bcda2e7 Mon Sep 17 00:00:00 2001
From: Peter Reilly
Date: Sun, 31 Dec 2006 14:09:25 +0000
Subject: [PATCH] add doc for updateProperty and errorProperty, add note for
openjdk
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@491423 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/CoreTasks/javac.html | 44 ++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
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"/>
+