From 260242a8af23969d08fdcf22a63e361da6414563 Mon Sep 17 00:00:00 2001
From: Jan Materne
Date: Wed, 27 Dec 2006 16:31:07 +0000
Subject: [PATCH] Describe as suggested in the Forum on
http://www.jguru.com/forums/view.jsp?EID=1323111
Fix some xml-entity mistakes (missing ;)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@490531 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/CoreTasks/javac.html | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/docs/manual/CoreTasks/javac.html b/docs/manual/CoreTasks/javac.html
index c059cc349..5aabb1b7b 100644
--- a/docs/manual/CoreTasks/javac.html
+++ b/docs/manual/CoreTasks/javac.html
@@ -564,11 +564,11 @@ the non-example files refers to them.
If you wish to compile with a special JDK (another than the one Ant is currently using),
set the executable
and fork
attribute. Using taskname
could show in the log, that these settings are fix.
- <javac srcdir="."
- destdir="."
- executable="path-to-java14-home/bin/javac"
- fork="true"
- taskname="javac1.4" />
+ <javac srcdir=""
+ destdir=""
+ executable="path-to-java14-home/bin/javac"
+ fork="true"
+ taskname="javac1.4" />
@@ -576,6 +576,18 @@ could show in the log, that these settings are fix.
for every use of an external compiler, this may be a problem of the JDK you are
using. This problem may occur with all JDKs < 1.2.
+
+
+If you want to activate other compiler options like lint you could use
+the <compilerarg> element:
+
<javac srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="libraries">
+ <compilerarg value="-Xlint"/>
+ </javac>
+
+
+
Jikes Notes
You need Jikes 1.15 or later.