stevel      02/04/29 16:38:04

  Modified:    src/main/org/apache/tools/ant/taskdefs/compilers
                        CompilerAdapterFactory.java
  Log:
  because a screwed up build.compiler only gives an error message like "false 
can't be found."
  
  Revision  Changes    Path
  1.13      +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.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- CompilerAdapterFactory.java       18 Apr 2002 14:18:59 -0000      1.12
  +++ CompilerAdapterFactory.java       29 Apr 2002 23:38:04 -0000      1.13
  @@ -191,14 +191,15 @@
               Object o = c.newInstance();
               return (CompilerAdapter) o;
           } catch (ClassNotFoundException cnfe) {
  -            throw new BuildException(className + " can\'t be found.", cnfe);
  +            throw new BuildException("Compiler Adapter "+className 
  +                    + " can\'t be found.", cnfe);
           } catch (ClassCastException cce) {
               throw new BuildException(className + " isn\'t the classname of "
                       + "a compiler adapter.", cce);
           } catch (Throwable t) {
               // for all other possibilities
  -            throw new BuildException(className + " caused an interesting "
  -                    + "exception.", t);
  +            throw new BuildException("Compiler Adapter "+className 
  +                    + " caused an interesting exception.", t);
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to