You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2002/05/10 08:53:39 UTC
cvs commit: jakarta-ant/docs/manual/CoreTasks javac.html
bodewig 02/05/09 23:53:39
Modified: docs/manual/CoreTasks Tag: ANT_15_BRANCH javac.html
Log:
Add an example for "compile with javac of a different JDK".
Revision Changes Path
No revision
No revision
1.33.2.2 +14 -0 jakarta-ant/docs/manual/CoreTasks/javac.html
Index: javac.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/javac.html,v
retrieving revision 1.33.2.1
retrieving revision 1.33.2.2
diff -u -r1.33.2.1 -r1.33.2.2
--- javac.html 3 May 2002 09:40:28 -0000 1.33.2.1
+++ javac.html 10 May 2002 06:53:39 -0000 1.33.2.2
@@ -456,6 +456,20 @@
<exclude name="mypackage/p1/testpackage/**"/>
</javac></pre>
+<p>If you want to run the javac compiler of a different JDK, you
+should tell Ant, where to find the compiler and which version of JDK
+your are using so it can choose the correct command line switches.
+The following example executes a JDK 1.1 javac in a new process and
+uses the correct command line switches even when Ant is running in a
+Java VM of a different version:</p>
+
+<pre> <javac srcdir="${src}"
+ destdir="${build}"
+ fork="yes"
+ executable="/opt/java/jdk1.1/bin/javac"
+ compiler="javac1.1"
+ /></pre>
+
<p><a name="srcdirnote"><b>Note:</b></a>
If you wish to compile only source files located in certain packages below a
common root, use the <code>include</code>/<code>exclude</code> attributes
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>