You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/06/09 15:08:48 UTC
svn commit: r782990 -
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java
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);