diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
commit | 1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch) | |
tree | f951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/runner/stats/FileLogWriter.java | |
parent | 42e0579442c805df41454461d17cdede43c47b6a (diff) |
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1)
Author: Petr Mladek <pmladek@suse.cz>
Date: Tue May 31 17:39:08 2011 +0200
Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes:
split repo tag: testing_libreoffice-3.3.3.1
split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'qadevOOo/runner/stats/FileLogWriter.java')
-rw-r--r-- | qadevOOo/runner/stats/FileLogWriter.java | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/qadevOOo/runner/stats/FileLogWriter.java b/qadevOOo/runner/stats/FileLogWriter.java index cfa4ccc5a617..1232480790f1 100644 --- a/qadevOOo/runner/stats/FileLogWriter.java +++ b/qadevOOo/runner/stats/FileLogWriter.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,12 +40,12 @@ import java.util.Iterator; public class FileLogWriter extends PrintWriter implements LogWriter { - + HashMap mFileWriters = null; boolean logging = false; share.DescEntry entry = null; share.Watcher ow = null; - + public FileLogWriter() { super(System.out); Calendar cal = new GregorianCalendar(); @@ -65,38 +65,38 @@ public class FileLogWriter extends PrintWriter implements LogWriter { this.entry = entry; return true; } - - - public void addFileLog(String filePath){ + + + public void addFileLog(String filePath){ try{ if(mFileWriters == null) - mFileWriters = new HashMap(); - mFileWriters.put(filePath, new FileWriter(filePath)); + mFileWriters = new HashMap(); + mFileWriters.put(filePath, new FileWriter(filePath)); }catch(IOException e ){ e.printStackTrace(this); - } + } } - - - public void removeFileLog(String filePath){ + + + public void removeFileLog(String filePath){ if(filePath != null) - mFileWriters.remove(filePath); + mFileWriters.remove(filePath); } - - + + public void println(String msg) { - + this.ow = (share.Watcher) entry.UserDefinedParams.get("Watcher"); - + if (ow != null) { ow.ping(); } if (logging) { - + // logoutput to console super.println("LOG> "+msg); - super.flush(); - + super.flush(); + //logoutput to file if(mFileWriters != null && mFileWriters.size() > 0){ try{ @@ -110,7 +110,7 @@ public class FileLogWriter extends PrintWriter implements LogWriter { }catch(IOException e ){ e.printStackTrace(this); } - } + } } } @@ -124,7 +124,7 @@ public class FileLogWriter extends PrintWriter implements LogWriter { System.out.println("Whole "+entry.EntryType+": "+entry.State); } for (int i=0;i<header.length();i++) { - System.out.print("*"); + System.out.print("*"); } System.out.println(""); return true; @@ -133,9 +133,9 @@ public class FileLogWriter extends PrintWriter implements LogWriter { public Object getWatcher() { return this.ow; } - + public void setWatcher(Object watcher) { entry.UserDefinedParams.put("Watcher", (share.Watcher) watcher); } - + } |