summaryrefslogtreecommitdiff
path: root/qadevOOo/runner
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-11-02 16:43:42 +0000
committerKurt Zenker <kz@openoffice.org>2005-11-02 16:43:42 +0000
commit5552c4417429cbc58fef2d95b4eaacc869885fc4 (patch)
treeaafd44c7e0260ab0f2c9c23991aff61bc4e0691e /qadevOOo/runner
parent94366d5c86cf6e5052e049a061911cdb257f7f17 (diff)
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
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r--qadevOOo/runner/helper/ProcessHandler.java24
1 files changed, 22 insertions, 2 deletions
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,6 +138,12 @@ 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);
@@ -145,6 +151,20 @@ public class ProcessHandler {
}
/**
+ * 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
* of external command.