diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-01-19 13:18:59 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-01-19 13:18:59 +0000 |
commit | 4abce814ebc96d78e57a7648a0bef7b2e36f52a3 (patch) | |
tree | 903b93cd826d5f15ba20c6842fb8ad80cc302d63 /qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java | |
parent | 38d4cca0ae72b3ec873a12579798dc3a41e93e3b (diff) |
INTEGRATION: CWS qadev25 (1.5.6); FILE MERGED
2005/11/15 13:58:42 lla 1.5.6.2: #127811# write into log instead System.out.
2005/11/11 10:53:06 lla 1.5.6.1: #127811# convwatch cleanups
Diffstat (limited to 'qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java')
-rw-r--r-- | qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java b/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java index f911fd271973..aed431431cc7 100644 --- a/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java +++ b/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java @@ -4,9 +4,9 @@ * * $RCSfile: GraphicalDifferenceCheck.java,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-08 17:12:35 $ + * last change: $Author: obo $ $Date: 2006-01-19 14:18:59 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -48,6 +48,7 @@ import com.sun.star.frame.XStorable; import com.sun.star.beans.PropertyValue; import com.sun.star.lang.XServiceInfo; import com.sun.star.uno.UnoRuntime; +import share.LogWriter; public class GraphicalDifferenceCheck { @@ -56,12 +57,12 @@ public class GraphicalDifferenceCheck // DEBUG only if (FileHelper.isDebugEnabled()) { - System.out.println(); - System.out.println("+##############################+"); - System.out.println("##### THIS IS CONVWATCH #####"); - System.out.println("##### Debug Version 1.0013 #####"); - System.out.println("+##############################+"); - System.out.println(); + GlobalLogWriter.get().println(""); + GlobalLogWriter.get().println("+##############################+"); + GlobalLogWriter.get().println("##### THIS IS CONVWATCH #####"); + GlobalLogWriter.get().println("##### Debug Version 1.0014 #####"); + GlobalLogWriter.get().println("+##############################+"); + GlobalLogWriter.get().println(""); } } @@ -94,7 +95,6 @@ public class GraphicalDifferenceCheck // return; // } - if (aInputPath.isDirectory()) { String fs = System.getProperty("file.separator"); @@ -130,6 +130,10 @@ public class GraphicalDifferenceCheck public static boolean createOneReferenceFile(String _sInputFile, String _sReferencePath, GraphicalTestArguments _aGTA) throws ConvWatchException { showVersion(); + if (_aGTA != null) + { + _aGTA.setInputFile(_sInputFile); + } return OfficePrint.buildReference(_aGTA, _sReferencePath, _sInputFile); } @@ -220,7 +224,7 @@ public class GraphicalDifferenceCheck } else { - bOk = GraphicalDifferenceCheck.checkOneFile(_sInputPath, _sOutputPath, _sReferencePath, _sDiffPath, _aGTA); + bOk = /* GraphicalDifferenceCheck.*/ checkOneFile(_sInputPath, _sOutputPath, _sReferencePath, _sDiffPath, _aGTA); } return bOk; } @@ -250,6 +254,10 @@ public class GraphicalDifferenceCheck public static boolean checkOneFile(String _sInputFile, String _sOutputPath, String _sReferencePath, String _sDiffPath, GraphicalTestArguments _aGTA ) throws ConvWatchException { showVersion(); + if (_aGTA != null) + { + _aGTA.setInputFile(_sInputFile); + } boolean bOk = false; if (_sDiffPath != null) @@ -355,7 +363,7 @@ public class GraphicalDifferenceCheck throw new ConvWatchCancelException("Wrap IOException caught, " + e.getMessage()); } - System.out.println("Saving XComponent as " + resultURL); + GlobalLogWriter.get().println("Saving XComponent as " + resultURL); return resultURL; } |