ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: jakarta-ant/docs/manual/CoreTasks javac.html
Date Fri, 10 May 2002 06:53:39 GMT
bodewig     02/05/09 23:53:39

  Modified:    docs/manual/CoreTasks Tag: ANT_15_BRANCH javac.html
  Add an example for "compile with javac of a different JDK".
  Revision  Changes    Path
  No                   revision
  No                   revision  +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
  retrieving revision
  diff -u -r1.33.2.1 -r1.33.2.2
  --- javac.html	3 May 2002 09:40:28 -0000
  +++ javac.html	10 May 2002 06:53:39 -0000
  @@ -456,6 +456,20 @@
       <exclude name="mypackage/p1/testpackage/**"/>
  +<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>  &lt;javac srcdir=&quot;${src}&quot;
  +         destdir=&quot;${build}&quot;
  +         fork=&quot;yes&quot;
  +         executable=&quot;/opt/java/jdk1.1/bin/javac&quot;
  +         compiler=&quot;javac1.1&quot;
  +  /&gt;</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>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message