Package com.buschmais.jqassistant.core.report.api

Examples of com.buschmais.jqassistant.core.report.api.ReportTransformer


      StringWriter writer = new StringWriter();
      // Transform
      Source xmlSource = new StreamSource(selectedXmlReportFile);
      Result htmlTarget = new StreamResult(writer);
      getLog().info("Transforming " + selectedXmlReportFile.getAbsolutePath() + ".");
      ReportTransformer transformer = new HtmlReportTransformer();
      try {
        transformer.transform(xmlSource, htmlTarget);
      } catch (ReportTransformerException e) {
        throw new MavenReportException("Cannot transform report.", e);
      }
      getSink().rawText(writer.toString());
    }
View Full Code Here


        selectedHtmlReportFile.getParentFile().mkdirs();
        // Transform
        Source xmlSource = new StreamSource(selectedXmlReportFile);
        Result htmlTarget = new StreamResult(selectedHtmlReportFile);
        getLog().info("Transforming " + selectedXmlReportFile.getAbsolutePath() + " to " + selectedHtmlReportFile.getAbsolutePath() + ".");
        ReportTransformer transformer = new HtmlReportTransformer();
        try {
            transformer.transform(xmlSource, htmlTarget);
        } catch (ReportTransformerException e) {
            throw new MojoExecutionException("Cannot transform report.", e);
        }
    }
View Full Code Here

            StringWriter writer = new StringWriter();
            // Transform
            Source xmlSource = new StreamSource(selectedXmlReportFile);
            Result htmlTarget = new StreamResult(writer);
            getLog().info("Transforming " + selectedXmlReportFile.getAbsolutePath() + ".");
            ReportTransformer transformer = new HtmlReportTransformer();
            try {
                transformer.transform(xmlSource, htmlTarget);
            } catch (ReportTransformerException e) {
                throw new MavenReportException("Cannot transform report.", e);
            }
            getSink().rawText(writer.toString());
        }
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.core.report.api.ReportTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.