peterreilly 2004/09/08 04:25:32 Modified: src/main/org/apache/tools/ant/launch Launcher.java Log: InstantiationException.getCause() not in jdk 1.3. Revision Changes Path 1.21 +1 -13 ant/src/main/org/apache/tools/ant/launch/Launcher.java Index: Launcher.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/launch/Launcher.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- Launcher.java 8 Sep 2004 09:43:50 -0000 1.20 +++ Launcher.java 8 Sep 2004 11:25:32 -0000 1.21 @@ -222,19 +222,7 @@ AntMain main = (AntMain) mainClass.newInstance(); main.startAnt(newArgs, null, null); } catch (Throwable t) { - if (t instanceof InstantiationException) { - t.printStackTrace(); - InstantiationException ie = (InstantiationException) t; - if (ie.getCause() == null) { - System.err.println("Instantiation Exception - root cause: " - + ie.getCause()); - } else { - System.err.println("Instantiation Exception - root cause:"); - ie.getCause().printStackTrace(); - } - } else { - t.printStackTrace(); - } + t.printStackTrace(); } } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]