Browse Source

Merge

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276773 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 21 years ago
parent
commit
8c4315b93e
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/main/org/apache/tools/ant/launch/Launcher.java

+ 7
- 1
src/main/org/apache/tools/ant/launch/Launcher.java View File

@@ -195,7 +195,13 @@ public class Launcher {
AntMain main = (AntMain) mainClass.newInstance();
main.startAnt(newArgs, null, null);
} catch (Throwable t) {
t.printStackTrace();
if (t instanceof InstantiationException) {
InstantiationException ie = (InstantiationException) t;
System.err.println("Instantiation Exception - root cause:");
ie.getCause().printStackTrace();
} else {
t.printStackTrace();
}
}
}
}


Loading…
Cancel
Save