[FIXED JENKINS-7809] expose child process stdout as InputStream.

I added a mode where one can launch a child process without the built-in pumping support, making it trivial to read until EOF in the distributed environments.

 This concludes the fix.
This commit is contained in:
Kohsuke Kawaguchi committed 2011-02-16 08:28:00 -08:00
1 parent e8971a5723
commit 96dd84b5d0
8 files changed
+395 -45

No files matched your search

@@ -4,6 +4,8 @@ import hudson.Launcher.ProcStarter;
import hudson.Proc;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Fake a process launch.
@@ -47,5 +49,23 @@ public interface FakeLauncher {
public int join() throws IOException, InterruptedException {
return exitCode;
}
@Override
public InputStream getStdout() {
// TODO
throw new UnsupportedOperationException();
}
@Override
public InputStream getStderr() {
// TODO
throw new UnsupportedOperationException();
}
@Override
public OutputStream getStdin() {
// TODO
throw new UnsupportedOperationException();
}
}
}