bodewig     2004/12/07 23:57:04

  Modified:    src/main/org/apache/tools/ant/taskdefs/compilers Jikes.java
  Log:
  warn when Ant upgrades -source for jikes
  
  Revision  Changes    Path
  1.28      +3 -1      
ant/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java
  
  Index: Jikes.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- Jikes.java        7 Dec 2004 15:55:31 -0000       1.27
  +++ Jikes.java        8 Dec 2004 07:57:04 -0000       1.28
  @@ -39,7 +39,7 @@
        * there is no option in jikes and I don't understand
        * what they should do.
        *
  -     * It has been successfully tested with jikes >1.10
  +     * It has been successfully tested with jikes >1.10
        */
       public boolean execute() throws BuildException {
           attributes.log("Using jikes compiler", Project.MSG_VERBOSE);
  @@ -190,6 +190,8 @@
               if (source.equals("1.1") || source.equals("1.2")) {
                   // support for -source 1.1 and -source 1.2 has been
                   // added with JDK 1.4.2, Jikes doesn't like it
  +                attributes.log("Jikes doesn't support '-source "
  +                               + source + "', will use '-source 1.3' 
instead");
                   cmd.createArgument().setValue("1.3");
               } else {
                   cmd.createArgument().setValue(source);
  
  
  

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

Reply via email to