Browse Source

Describe <compilerarg> 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
master
Jan Materne 18 years ago
parent
commit
260242a8af
1 changed files with 17 additions and 5 deletions
  1. +17
    -5
      docs/manual/CoreTasks/javac.html

+ 17
- 5
docs/manual/CoreTasks/javac.html View File

@@ -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 <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>


@@ -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 &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>

<p>You need Jikes 1.15 or later.</p>


Loading…
Cancel
Save