Browse Source

because a screwed up build.compiler only gives an error message like "false can't be found."

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272596 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
c4b2350658
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java

+ 4
- 3
src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java View File

@@ -191,14 +191,15 @@ public class CompilerAdapterFactory {
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);
}
}



Loading…
Cancel
Save