ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r581091 - /ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/DefaultLogger.java
Date Mon, 01 Oct 2007 22:01:42 GMT
Author: jglick
Date: Mon Oct  1 15:01:42 2007
New Revision: 581091

URL: http://svn.apache.org/viewvc?rev=581091&view=rev
Log:
#43398: print full stack trace (merge of rev 581076 from trunk)

Modified:
    ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/DefaultLogger.java

Modified: ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/DefaultLogger.java
URL: http://svn.apache.org/viewvc/ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/DefaultLogger.java?rev=581091&r1=581090&r2=581091&view=diff
==============================================================================
--- ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/DefaultLogger.java (original)
+++ ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/DefaultLogger.java Mon Oct
 1 15:01:42 2007
@@ -149,6 +149,15 @@
             message.append(getBuildFailedMessage());
             message.append(StringUtils.LINE_SEP);
 
+            while (error instanceof BuildException) { // #43398
+                Throwable cause = ((BuildException) error).getCause();
+                if (cause != null && cause.toString().equals(error.getMessage()))
{
+                    error = cause;
+                } else {
+                    break;
+                }
+            }
+
             if (Project.MSG_VERBOSE <= msgOutputLevel
                 || !(error instanceof BuildException)) {
                 message.append(StringUtils.getStackTrace(error));



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message