From d0fe1a818c693e46b4b5587e3e907195608ddbac Mon Sep 17 00:00:00 2001 From: jeb228 Date: Mon, 8 Feb 2010 15:45:52 +0000 Subject: [PATCH] Modify MakeTidy so it doesn't create an output file when we run the unit tests. --- .../edu/cornell/mannlib/vitro/webapp/utils/MakeTidy.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/utils/MakeTidy.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/utils/MakeTidy.java index 775808fed..487d89a56 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/utils/MakeTidy.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/utils/MakeTidy.java @@ -10,7 +10,6 @@ import java.io.StringWriter; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.w3c.tidy.Node; import org.w3c.tidy.Tidy; public class MakeTidy { @@ -54,10 +53,7 @@ public class MakeTidy { StringWriter sw = new StringWriter(); /*Node rootNode = */tidy. parse(new StringReader(value),sw); String outputStr = sw.toString(); - if (outFile != null /*&& log.isDebugEnabled()*/) { - outFile.println("\nTidied Output:\n"+outputStr+"\n"); - } - outFile.flush(); + log.debug("\nTidied Output:\n" + outputStr + "\n"); return outputStr; } }