git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274094 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -166,6 +166,11 @@ public class ExecTask extends Task { | |||||
| redirector.setInput(input); | redirector.setInput(input); | ||||
| } | } | ||||
| /** | |||||
| * Set the string to use as input | |||||
| * | |||||
| * @param inputString the string which is used as the input source | |||||
| */ | |||||
| public void setInputString(String inputString) { | public void setInputString(String inputString) { | ||||
| redirector.setInputString(inputString); | redirector.setInputString(inputString); | ||||
| } | } | ||||
| @@ -308,6 +308,11 @@ public class Java extends Task { | |||||
| redirector.setInput(input); | redirector.setInput(input); | ||||
| } | } | ||||
| /** | |||||
| * Set the string to use as input | |||||
| * | |||||
| * @param inputString the string which is used as the input source | |||||
| */ | |||||
| public void setInputString(String inputString) { | public void setInputString(String inputString) { | ||||
| redirector.setInputString(inputString); | redirector.setInputString(inputString); | ||||
| } | } | ||||
| @@ -123,7 +123,11 @@ public class StreamPumper implements Runnable { | |||||
| // ignore errors | // ignore errors | ||||
| } finally { | } finally { | ||||
| if (closeWhenExhausted) { | if (closeWhenExhausted) { | ||||
| os.close(); | |||||
| try { | |||||
| os.close(); | |||||
| } catch (IOException e) { | |||||
| // ignore | |||||
| } | |||||
| } | } | ||||
| synchronized (this) { | synchronized (this) { | ||||
| finished = true; | finished = true; | ||||