|
|
@@ -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> <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> |
|
|
|
|
|
|
|
|
|
|
@@ -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.</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> |
|
|
|
|
|
|
|
<p>You need Jikes 1.15 or later.</p> |
|
|
|