Search in sources :

Example 1 with KeepAliveInputStream

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()));
    }
}
Also used : KeepAliveInputStream(org.apache.tools.ant.util.KeepAliveInputStream)

Aggregations

KeepAliveInputStream (org.apache.tools.ant.util.KeepAliveInputStream)1