diff --git a/remoting/src/main/java/hudson/remoting/Launcher.java b/remoting/src/main/java/hudson/remoting/Launcher.java index 18858b7a623d7f553d45f90e555b0bb000f0e1eb..43ff8d8a3a1f2f97ca4986ad9f2190a40296a55b 100644 --- a/remoting/src/main/java/hudson/remoting/Launcher.java +++ b/remoting/src/main/java/hudson/remoting/Launcher.java @@ -39,6 +39,10 @@ public class Launcher { System.exit(0); } + public static void main(InputStream is, OutputStream os) throws IOException, InterruptedException { + main(is,os, Mode.BINARY); + } + public static void main(InputStream is, OutputStream os, Mode mode) throws IOException, InterruptedException { ExecutorService executor = Executors.newCachedThreadPool(); Channel channel = new Channel("channel", executor, mode, is, os);