289N/A * The contents of this file are subject to the terms of the 289N/A * Common Development and Distribution License (the "License"). 289N/A * You may not use this file except in compliance with the License. 289N/A * language governing permissions and limitations under the License. 289N/A * When distributing Covered Code, include this CDDL HEADER in each 289N/A * If applicable, add the following below this CDDL HEADER, with the 289N/A * fields enclosed by brackets "[]" replaced with your own identifying 289N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1228N/A * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. 289N/A * Wrapper to Java Process API 289N/A * @author Emilio Monti - emilmont@gmail.com 577N/A * Create a new instance of the Executor. 514N/A * @param cmd An array containing the command to execute 577N/A * Create a new instance of the Executor. 577N/A * @param cmdList A list containing the command to execute 577N/A * Create a new instance of the Executor 577N/A * @param cmdList A list containing the command to execute 577N/A * @param workingDirectory The directory the process should have as the 514N/A * Execute the command and collect the output. All exceptions will be 514N/A * @return The exit code of the process 514N/A * Execute the command and collect the output 514N/A * @param reportExceptions Should exceptions be added to the log or not 514N/A * @return The exit code of the process 573N/A * Execute the command and collect the output 573N/A * @param reportExceptions Should exceptions be added to the log or not 573N/A * @param handler The handler to handle data from standard output 573N/A * @return The exit code of the process 965N/A "Executing command {0} in directory {1}",
573N/A "Error during process pipe listening",
ex);
577N/A * Get the output from the process as a string. 577N/A * @return The output from the process 577N/A * Get a reader to read the output from the process 577N/A * @return A reader reading the process output 577N/A * Get an input stream read the output from the process 577N/A * @return A reader reading the process output 577N/A * Get the output from the process written to the error stream as a string. 577N/A * @return The error output from the process 577N/A * Get a reader to read the output the process wrote to the error stream. 577N/A * @return A reader reading the process error stream 577N/A * Get an inputstreamto read the output the process wrote to the error stream. 577N/A * @return An inputstream for reading the process error stream 573N/A * You should use the StreamHandler interface if you would like to process 573N/A * the output from a process while it is running 573N/A * Process the data in the stream. The processStream function is 573N/A * called _once_ during the lifetime of the process, and you should 573N/A * process all of the input you want before returning from the function. 573N/A * @param in The InputStream containing the data 573N/A * @throws java.io.IOException