You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jh...@apache.org on 2006/12/27 17:31:08 UTC
svn commit: r490531 - /ant/core/trunk/docs/manual/CoreTasks/javac.html
Author: jhm
Date: Wed Dec 27 08:31:07 2006
New Revision: 490531
URL: http://svn.apache.org/viewvc?view=rev&rev=490531
Log:
Describe <compilerarg> as suggested in the Forum on http://www.jguru.com/forums/view.jsp?EID=1323111
Fix some xml-entity mistakes (missing ;)
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=490531&r1=490530&r2=490531
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/javac.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/javac.html Wed Dec 27 08:31:07 2006
@@ -564,17 +564,29 @@
If you wish to compile with a special JDK (another than the one Ant is currently using),
set the <code>executable</code> and <code>fork</code> attribute. Using <code>taskname</code>
could show in the log, that these settings are fix.
-<pre> <javac srcdir="."
- destdir="."
- executable="path-to-java14-home/bin/javac"
- fork="true"
- taskname="javac1.4" /></pre>
+<pre> <javac srcdir=""
+ destdir=""
+ executable="path-to-java14-home/bin/javac"
+ fork="true"
+ taskname="javac1.4" /></pre>
</p>
<p><b>Note:</b> If you are using Ant on Windows and a new DOS window pops up
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.</p>
+
+
+<p>
+If you want to activate other compiler options like <i>lint</i> you could use
+the <tt><compilerarg></tt> element:
+<pre> <javac srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="libraries">
+ <compilerarg value="-Xlint"/>
+ </javac> </pre>
+</p>
+
<h3>Jikes Notes</h3>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org