ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r782990 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java
Date Tue, 09 Jun 2009 13:08:48 GMT
Author: bodewig
Date: Tue Jun  9 13:08:48 2009
New Revision: 782990

URL: http://svn.apache.org/viewvc?rev=782990&view=rev
Log:
pass on IOException from Runtime.exec as the old code did - and as promised by the javadocs.
 This fixes ant-contrib's tests in Gump.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java?rev=782990&r1=782989&r2=782990&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java Tue Jun  9 13:08:48
2009
@@ -825,6 +825,8 @@
                         + Commandline.describeCommand(cmd), Project.MSG_DEBUG);
                 }
                 return Runtime.getRuntime().exec(cmd, env, workingDir);
+            } catch (IOException ioex) {
+                throw ioex;
             } catch (Exception exc) {
                 // IllegalAccess, IllegalArgument, ClassCast
                 throw new BuildException("Unable to execute command", exc);



Mime
View raw message