Class Proc


  • class Proc
    extends java.lang.Object
    External process wrapper.

    stdout/stderr of the process will be sent to the specified stream.

    Author:
    Kohsuke Kawaguchi (kk@kohsuke.org)
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  Proc.CopyThread  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Thread err  
      private java.lang.Thread out  
      private java.lang.Process proc  
    • Constructor Summary

      Constructors 
      Constructor Description
      Proc​(java.lang.String cmdLine)
      Launches a process
      Proc​(java.lang.String cmdLine, java.io.OutputStream stdout, java.io.OutputStream stderr)
      Launches a process
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int join()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • proc

        private final java.lang.Process proc
      • out

        private java.lang.Thread out
      • err

        private java.lang.Thread err
    • Constructor Detail

      • Proc

        public Proc​(java.lang.String cmdLine)
             throws java.io.IOException
        Launches a process
        Throws:
        java.io.IOException
      • Proc

        public Proc​(java.lang.String cmdLine,
                    java.io.OutputStream stdout,
                    java.io.OutputStream stderr)
             throws java.io.IOException
        Launches a process
        Throws:
        java.io.IOException
    • Method Detail

      • join

        public int join()