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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to