ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers CompilerAdapterFactory.java
Date Thu, 22 Aug 2002 17:34:06 GMT
costin      2002/08/22 10:34:06

  Modified:    src/main/org/apache/tools/ant/taskdefs/compilers
                        CompilerAdapterFactory.java
  Log:
  Add an extra attempt to load tools.jar
  
  Revision  Changes    Path
  1.17      +6 -1      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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- CompilerAdapterFactory.java	25 Jul 2002 15:21:09 -0000	1.16
  +++ CompilerAdapterFactory.java	22 Aug 2002 17:34:06 -0000	1.17
  @@ -173,8 +173,13 @@
               Class.forName("com.sun.tools.javac.Main");
               return true;
           } catch (ClassNotFoundException cnfe) {
  -            return false;
  +            try {
  +                CompilerAdapterFactory.class.getClassLoader().loadClass( "com.sun.tools.javac.Main"
);
  +                return true;
  +            } catch (ClassNotFoundException cnfe2) {
  +            }
           }
  +        return false;
       }
       
       /**
  
  
  

--
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