bodewig     02/03/21 01:17:02

  Modified:    .        WHATSNEW
               docs/manual/CoreTasks javac.html
               src/main/org/apache/tools/ant/taskdefs/compilers Jikes.java
  Log:
  enable <javac>'s source attribute for jikes as well.
  
  PR: 7002
  
  Revision  Changes    Path
  1.227     +2 -0      jakarta-ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/WHATSNEW,v
  retrieving revision 1.226
  retrieving revision 1.227
  diff -u -r1.226 -r1.227
  --- WHATSNEW  21 Mar 2002 08:48:18 -0000      1.226
  +++ WHATSNEW  21 Mar 2002 09:17:01 -0000      1.227
  @@ -232,6 +232,8 @@
     to the standard Java 1.4 doclet. The element is ignored when not running
     on Java 1.4.
   
  +* <java>'s source attribute is now enabled for jikes as well.
  +
   Changes from Ant 1.4 to Ant 1.4.1
   ===========================================
   
  
  
  
  1.30      +9 -3      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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- javac.html        20 Mar 2002 05:27:43 -0000      1.29
  +++ javac.html        21 Mar 2002 09:17:01 -0000      1.30
  @@ -284,11 +284,17 @@
     </tr>
     <tr>
       <td valign="top">source</td>
  +
       <td valign="top">Value of the <code>-source</code> command-line
       switch; will be ignored by all implementations except
  -    <code>modern</code>. Legal values are <code>1.3</code> and
  -    <code>1.4</code> &ndash; by default, no <code>-source</code> argument
  -    will be used at all.</td>
  +    <code>modern</code> and <code>jikes</code>.<br>
  +    If you use this attribute together with <code>jikes</code>, you
  +    must make sure that your version of jikes supports the
  +    <code>-source</code> switch.<br>
  +    Legal values are <code>1.3</code> and <code>1.4</code> &ndash; by
  +    default, no <code>-source</code> argument will be used at
  +    all.</td>
  +
       <td align="center" valign="top">No</td>
     </tr>
     <tr>
  
  
  
  1.9       +5 -0      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java
  
  Index: Jikes.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Jikes.java        25 Feb 2002 17:38:15 -0000      1.8
  +++ Jikes.java        21 Mar 2002 09:17:01 -0000      1.9
  @@ -209,6 +209,11 @@
               cmd.createArgument().setValue("+F");
           }
   
  +        if (attributes.getSource() != null) {
  +            cmd.createArgument().setValue("-source");
  +            cmd.createArgument().setValue(attributes.getSource());
  +        }
  +
           addCurrentCompilerArgs(cmd);
   
           int firstFileName = cmd.size();
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to