Browse Source

BuildExceptions were not printing their own stack trace. They do this now

but it does make the output in the event of a failure a bit noisier


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269438 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
6f0e2f06ac
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/BuildException.java

+ 2
- 2
src/main/org/apache/tools/ant/BuildException.java View File

@@ -173,7 +173,7 @@ public class BuildException extends RuntimeException {
public void printStackTrace(PrintStream ps) { public void printStackTrace(PrintStream ps) {
synchronized (ps) { synchronized (ps) {
ps.println(this);
super.printStackTrace(ps);
if (cause != null) { if (cause != null) {
ps.println("--- Nested Exception ---"); ps.println("--- Nested Exception ---");
cause.printStackTrace(ps); cause.printStackTrace(ps);
@@ -183,7 +183,7 @@ public class BuildException extends RuntimeException {
public void printStackTrace(PrintWriter pw) { public void printStackTrace(PrintWriter pw) {
synchronized (pw) { synchronized (pw) {
pw.println(this);
super.printStackTrace(pw);
if (cause != null) { if (cause != null) {
pw.println("--- Nested Exception ---"); pw.println("--- Nested Exception ---");
cause.printStackTrace(pw); cause.printStackTrace(pw);


Loading…
Cancel
Save