ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers CompilerAdapterFactory.java
Date Wed, 22 May 2002 01:26:45 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message