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 2004/12/07 16:55:31 UTC

cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/compilers Jikes.java

bodewig     2004/12/07 07:55:31

  Modified:    src/main/org/apache/tools/ant/taskdefs/compilers Jikes.java
  Log:
  Jikes doesn't like -source 1.2 either, found by Gump running on Kaffe+Jikes
  
  Revision  Changes    Path
  1.27      +8 -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.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- Jikes.java	9 Mar 2004 16:48:13 -0000	1.26
  +++ Jikes.java	7 Dec 2004 15:55:31 -0000	1.27
  @@ -186,7 +186,14 @@
   
           if (attributes.getSource() != null) {
               cmd.createArgument().setValue("-source");
  -            cmd.createArgument().setValue(attributes.getSource());
  +            String source = attributes.getSource();
  +            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
  +                cmd.createArgument().setValue("1.3");
  +            } else {
  +                cmd.createArgument().setValue(source);
  +            }
           }
   
           addCurrentCompilerArgs(cmd);
  
  
  

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