src/main/java/com/digitalglobe/util/maven/plugin/StreamHandler.java
/**
     * Runs a process to read the output an input stream.  Store any exceptions that occur.
     */
Runs a process to read the output an input stream.  Store any exceptions that occur.
Runs a process to read the output an input stream . Store any exceptions that occur .
public void run()
    {
        BufferedReader bufferedReader = null;
        try
        {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String line = null;
            while ((line = bufferedReader.readLine()) != null)
            {
                this.outputBuffer.append(line + "\n");
            }
        }
        catch (Exception ex)
        {
            this.exception = ex;
        }
        finally
        {
            try
            {
                bufferedReader.close();
            }
            catch (IOException e)
            {
                this.closeException = e;
            }
        }
    }
public void run ( ) { BufferedReader bufferedReader = null ; try { bufferedReader = new BufferedReader ( new InputStreamReader ( inputStream ) ) ; String line = null ; while ( ( line = bufferedReader . readLine ( ) ) != null ) { this . outputBuffer . append ( line + "\n" ) ; } } catch ( Exception ex ) { this . exception = ex ; } finally { try { bufferedReader . close ( ) ; } catch ( IOException e ) { this . closeException = e ; } } }
Runs a process to read the output an input stream.
Runs a process to read the output an input stream .