use of org.apache.tools.ant.util.KeepAliveInputStream in project ant by apache.
the class Java method setupRedirector.
/**
* Set up properties on the redirector that we needed to store locally.
*/
protected void setupRedirector() {
redirector.setInput(input);
redirector.setInputString(inputString);
redirector.setOutput(output);
redirector.setError(error);
if (redirectorElement != null) {
redirectorElement.configure(redirector);
}
if (!spawn && input == null && inputString == null) {
// #24918: send standard input to the process by default.
redirector.setInputStream(new KeepAliveInputStream(getProject().getDefaultInputStream()));
}
}
Aggregations