ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
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
  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/**"/>
     &lt;/javac&gt;</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>  &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>
attributes
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message