From aaf629b7abe464a3b5727ed9b93582f7628229f4 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 9 Jun 2009 13:08:48 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@782990 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Execute.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/org/apache/tools/ant/taskdefs/Execute.java b/src/main/org/apache/tools/ant/taskdefs/Execute.java index 0f09f3bb1..bccf9985c 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Execute.java +++ b/src/main/org/apache/tools/ant/taskdefs/Execute.java @@ -825,6 +825,8 @@ public class Execute { + 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);