From 5552c4417429cbc58fef2d95b4eaacc869885fc4 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Wed, 2 Nov 2005 16:43:42 +0000 Subject: INTEGRATION: CWS qadev24 (1.9.2); FILE MERGED 2005/09/19 22:07:58 cn 1.9.2.2: RESYNC: (1.9-1.10); FILE MERGED 2005/09/09 13:52:54 sg 1.9.2.1: #i53977#added c'tor for handling the office start --- qadevOOo/runner/helper/ProcessHandler.java | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'qadevOOo/runner') diff --git a/qadevOOo/runner/helper/ProcessHandler.java b/qadevOOo/runner/helper/ProcessHandler.java index 87ed62c91289..11745dfbeeea 100644 --- a/qadevOOo/runner/helper/ProcessHandler.java +++ b/qadevOOo/runner/helper/ProcessHandler.java @@ -4,9 +4,9 @@ * * $RCSfile: ProcessHandler.java,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: rt $ $Date: 2005-09-08 17:20:09 $ + * last change: $Author: kz $ $Date: 2005-11-02 17:43:42 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -138,12 +138,32 @@ public class ProcessHandler { this(cmdLine, null, null, null, 0); } + /** + * Creates instance with specified external command + * including parameters as an array. + * Debug info and output + * of external command is printed to stdout. + */ public ProcessHandler(String[] cmdLines) { this(null, null, null, null, 0); cmdLineArray = cmdLines; } + /** + * Creates instance with specified external command + * including parameters as an array, with environment + * variables. + * Debug info and output + * of external command is printed to stdout. + * @see java.lang.Runtime exec(String[], String[]) + */ + public ProcessHandler(String[] cmdLines, String[] envVars) + { + this(null, null, null, envVars, 0); + cmdLineArray = cmdLines; + } + /** * Creates instance with specified external command and * log stream where debug info is printed and output -- cgit