diff --git a/pmd/src/net/sourceforge/pmd/ant/Formatter.java b/pmd/src/net/sourceforge/pmd/ant/Formatter.java index 33ae193e01..12b9b6c0d6 100644 --- a/pmd/src/net/sourceforge/pmd/ant/Formatter.java +++ b/pmd/src/net/sourceforge/pmd/ant/Formatter.java @@ -46,7 +46,7 @@ public class Formatter { renderersByCode.put("xml", new RendererBuilder() { public Renderer build(Object[] arg) { return new XMLRenderer(); } }); - renderersByCode.put("nicehtml", new RendererBuilder() { + renderersByCode.put("betterhtml", new RendererBuilder() { public Renderer build(Object[] arg) { return new XSLTRenderer(); } }); renderersByCode.put("html", new RendererBuilder() { diff --git a/pmd/src/net/sourceforge/pmd/renderers/XSLTRenderer.java b/pmd/src/net/sourceforge/pmd/renderers/XSLTRenderer.java index f4096c92a0..49e16eff22 100644 --- a/pmd/src/net/sourceforge/pmd/renderers/XSLTRenderer.java +++ b/pmd/src/net/sourceforge/pmd/renderers/XSLTRenderer.java @@ -24,6 +24,8 @@ import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; +import net.sourceforge.pmd.ant.PMDTask; + import org.w3c.dom.Document; import org.xml.sax.SAXException; @@ -51,12 +53,10 @@ public class XSLTRenderer extends XMLRenderer { @Override public void start() throws IOException { // We keep the inital writer to put the final html output - System.out.println("render overrided"); this.outputWriter = getWriter(); // We use a new one to store the XML... Writer w = new StringWriter(); setWriter(w); - System.out.println("Class of writer:" + getWriter().getClass()); // If don't find the xsl no need to bother doing the all report, // so we check this here... InputStream xslt = null;