summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/stats/OutProducerFactory.java
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2003-11-18 15:16:47 +0000
committerKurt Zenker <kz@openoffice.org>2003-11-18 15:16:47 +0000
commit6a0a78d3eb5884f352d6f0fc044aef49241a1df8 (patch)
treee379e19a9d70839ec82e811b37dc4a6a44d997aa /qadevOOo/runner/stats/OutProducerFactory.java
parentc79b09d253f19663ab815d396b5c037f4f64f98a (diff)
INTEGRATION: CWS qadev13 (1.2.2); FILE MERGED
2003/11/12 17:44:30 sg 1.2.2.3: #113007#CHG: fixed bug 2003/11/07 14:53:29 sg 1.2.2.2: #113007#CHG: fixed dropped exceptions bug 2003/11/07 13:42:51 sg 1.2.2.1: #113007#CHG: fixed dropped exceptions bug
Diffstat (limited to 'qadevOOo/runner/stats/OutProducerFactory.java')
-rw-r--r--qadevOOo/runner/stats/OutProducerFactory.java24
1 files changed, 16 insertions, 8 deletions
diff --git a/qadevOOo/runner/stats/OutProducerFactory.java b/qadevOOo/runner/stats/OutProducerFactory.java
index 0a2468f0b143..dfadd3c73c17 100644
--- a/qadevOOo/runner/stats/OutProducerFactory.java
+++ b/qadevOOo/runner/stats/OutProducerFactory.java
@@ -2,9 +2,9 @@
*
* $RCSfile: OutProducerFactory.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change:$Date: 2003-10-06 12:41:14 $
+ * last change:$Date: 2003-11-18 16:16:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -87,10 +87,15 @@ public class OutProducerFactory {
}
if (dbOut == null) {
DynamicClassLoader dcl = new DynamicClassLoader();
- try {
- dbOut = (LogWriter)dcl.getInstance((String)param.get("OutProducer"));
+ String outProducerName = (String)param.get("OutProducer");
+ if (outProducerName != null) {
+ try {
+ dbOut = (LogWriter)dcl.getInstance(outProducerName);
+ }
+ catch(IllegalArgumentException e) {
+ e.printStackTrace();
+ }
}
- catch(IllegalArgumentException e) {}
}
if (dbOut == null) {
dbOut = createSimpleOutProducer();
@@ -104,10 +109,13 @@ public class OutProducerFactory {
* @return The database out producer, or null if it couldn't be created.
*/
public static LogWriter createDataBaseOutProducer(Hashtable param) {
- String testBaseName = (String)param.get("TestBase");
- String dataProducerName = testBaseName.substring(testBaseName.indexOf("_")+1);
- dataProducerName = "stats." + makeFirstCharUpperCase(dataProducerName)
+ String dataProducerName = (String)param.get("DataBaseOutProducer");
+ if (dataProducerName == null) {
+ String testBaseName = (String)param.get("TestBase");
+ dataProducerName = testBaseName.substring(testBaseName.indexOf("_")+1);
+ dataProducerName = "stats." + makeFirstCharUpperCase(dataProducerName)
+ "DataBaseOutProducer";
+ }
DynamicClassLoader dcl = new DynamicClassLoader();
LogWriter dbOut = null;
try {