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>  &lt;javac srcdir=&quot.&quot 
-         destdir=&quot.&quot 
-         executable=&quotpath-to-java14-home/bin/javac&quot 
-         fork=&quottrue&quot
-         taskname=&quotjavac1.4&quot /&gt;</pre>
+<pre>  &lt;javac srcdir=&quot;&quot; 
+         destdir=&quot;&quot;
+         executable=&quot;path-to-java14-home/bin/javac&quot; 
+         fork=&quot;true&quot;
+         taskname=&quot;javac1.4&quot; /&gt;</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 &lt; 1.2.</p>
+
+
+<p>
+If you want to activate other compiler options like <i>lint</i> you could use
+the <tt>&lt;compilerarg&gt;</tt> element:
+<pre>  &lt;javac srcdir="${src.dir}"
+         destdir="${classes.dir}"
+         classpathref="libraries"&gt;
+    &lt;compilerarg value="-Xlint"/&gt;
+  &lt;/javac&gt; </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