Skip to content

Commit

Permalink
[FIXED JENKINS-7809] expose child process stdout as InputStream.
Browse files Browse the repository at this point in the history
 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.

Originally-Committed-As: 96dd84b5d0d37e1765c3615bcba048eb62e38ad6
  • Loading branch information
kohsuke committed Feb 16, 2011
1 parent b744e0c commit d4fe2dc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/src/main/java/org/jvnet/hudson/test/FakeLauncher.java
Expand Up @@ -4,6 +4,8 @@
import hudson.Proc;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
* Fake a process launch.
Expand Down Expand Up @@ -47,5 +49,23 @@ public void kill() throws IOException, InterruptedException {
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();
}
}
}

0 comments on commit d4fe2dc

Please sign in to comment.