You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2002/05/22 03:26:45 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers CompilerAdapterFactory.java

stevel      02/05/21 18:26:45

  Modified:    src/main/org/apache/tools/ant/taskdefs/compilers Tag:
                        ANT_15_BRANCH CompilerAdapterFactory.java
  Log:
  upgrade 'classic' to 'modern' on java1.4 and up
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.14.2.1  +4 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java
  
  Index: CompilerAdapterFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java,v
  retrieving revision 1.14
  retrieving revision 1.14.2.1
  diff -u -r1.14 -r1.14.2.1
  --- CompilerAdapterFactory.java	30 Apr 2002 00:03:25 -0000	1.14
  +++ CompilerAdapterFactory.java	22 May 2002 01:26:44 -0000	1.14.2.1
  @@ -115,11 +115,12 @@
                   if (isClassicCompilerSupported) {
                       return new Javac12();
                   } else {
  -                    throw new BuildException("This version of java does "
  +                    task.log("This version of java does "
                                                + "not support the classic "
  -                                             + "compiler");
  +                                             + "compiler; upgrading to modern",
  +                                             Project.MSG_WARN);
  +                    compilerType="modern";
                   }
  -
               }
               //on java<=1.3 the modern falls back to classic if it is not found
               //but on java>=1.4 we just bail out early
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>