ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r498961 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java
Date Tue, 23 Jan 2007 09:07:02 GMT
Author: bodewig
Date: Tue Jan 23 01:06:57 2007
New Revision: 498961

URL: http://svn.apache.org/viewvc?view=rev&rev=498961
Log:
Don't swallow exception information in P4Base

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java?view=diff&rev=498961&r1=498960&r2=498961
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java Tue
Jan 23 01:06:57 2007
@@ -294,7 +294,11 @@
         } catch (Exception e) {
             String failMsg = "Problem exec'ing P4 command: " + e.getMessage();
             if (failOnError) {
-                throw new BuildException(failMsg);
+                if (e instanceof BuildException) {
+                    throw (BuildException) e;
+                } else {
+                    throw new BuildException(failMsg, e);
+                }
             } else {
                 log(failMsg, Project.MSG_ERR);
             }



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


Mime
View raw message