Examples of ReportGenerator


Examples of org.owasp.dependencycheck.reporting.ReportGenerator

        } finally {
            if (cve != null) {
                cve.close();
            }
        }
        final ReportGenerator r = new ReportGenerator(this.applicationName, engine.getDependencies(), engine.getAnalyzers(), prop);
        try {
            r.generateReports(outDirectory.getCanonicalPath(), this.reportFormat.name());
        } catch (IOException ex) {
            LOGGER.log(Level.SEVERE,
                    "Unexpected exception occurred during analysis; please see the verbose error log for more details.");
            LOGGER.log(Level.FINE, null, ex);
        } catch (Throwable ex) {
View Full Code Here

Examples of org.owasp.dependencycheck.reporting.ReportGenerator

        } finally {
            if (cve != null) {
                cve.close();
            }
        }
        final ReportGenerator r = new ReportGenerator(projectName, engine.getDependencies(), engine.getAnalyzers(), prop);
        try {
            r.generateReports(outDirectory.getCanonicalPath(), format);
        } catch (IOException ex) {
            LOGGER.log(Level.SEVERE,
                    "Unexpected exception occurred during analysis; please see the verbose error log for more details.");
            LOGGER.log(Level.FINE, null, ex);
        } catch (Throwable ex) {
View Full Code Here

Examples of org.owasp.dependencycheck.reporting.ReportGenerator

        instance.analyzeDependencies();
        CveDB cveDB = new CveDB();
        cveDB.open();
        DatabaseProperties dbProp = cveDB.getDatabaseProperties();
        cveDB.close();
        ReportGenerator rg = new ReportGenerator("DependencyCheck", instance.getDependencies(), instance.getAnalyzers(), dbProp);
        rg.generateReports("./target/", "ALL");
        instance.cleanup();
    }
View Full Code Here

Examples of org.owasp.dependencycheck.reporting.ReportGenerator

                } finally {
                    if (cve != null) {
                        cve.close();
                    }
                }
                final ReportGenerator reporter = new ReportGenerator(applicationName, engine.getDependencies(), engine.getAnalyzers(), prop);
                reporter.generateReports(reportOutputDirectory, reportFormat);

                if (this.failBuildOnCVSS <= 10) {
                    checkForFailure(engine.getDependencies());
                }
                if (this.showSummary) {
View Full Code Here

Examples of org.owasp.dependencycheck.reporting.ReportGenerator

            } finally {
                if (cve != null) {
                    cve.close();
                }
            }
            final ReportGenerator report = new ReportGenerator(applicationName, dependencies, engine.getAnalyzers(), prop);
            try {
                report.generateReports(reportDirectory, outputFormat);
            } catch (IOException ex) {
                LOGGER.log(Level.SEVERE, "There was an IO error while attempting to generate the report.");
                LOGGER.log(Level.FINE, null, ex);
            } catch (Throwable ex) {
                LOGGER.log(Level.SEVERE, "There was an error while attempting to generate the report.");
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator

  public void testPre401() throws Exception
  {
    // Boot the system

    // Load the report
    final ReportGenerator generator = ReportGenerator.getInstance();
    final MasterReport report = generator.parseReport
        (ObjectUtilities.getResourceRelative("IncomeStatement.xml", IncomeStatementTest.class));
    // Create the report and export to the supplied output filename
    PdfReportUtil.createPDF(report, "report.pdf");
    HtmlReportUtil.createStreamHTML(report, "bug.html");
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator

  public void testPre401() throws Exception
  {
    // Boot the system

    // Load the report
    final ReportGenerator generator = ReportGenerator.getInstance();
    final MasterReport report = generator.parseReport
        (ObjectUtilities.getResourceRelative("Pre437.xml", Pre437Test.class));
    // Create the report and export to the supplied output filename
    ExcelReportUtil.createXLS(report, new NullOutputStream());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator

  public void testPre401() throws Exception
  {
    // Boot the system

    // Load the report
    final ReportGenerator generator = ReportGenerator.getInstance();
    final MasterReport report = generator.parseReport
        (ObjectUtilities.getResourceRelative("Prd821.xml", Prd821Test.class));
    // Create the report and export to the supplied output filename
    TestSystem.showPreview(report);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator

   * @param args ignored.
   */
  public static void main(final String[] args)
  {
    ClassicEngineBoot.getInstance().start();
    final ReportGenerator gen = ReportGenerator.getInstance();
    final URL reportURL = ObjectUtilities.getResourceRelative
        (REFERENCE_REPORT, ObjectReferenceGenerator.class);
    if (reportURL == null)
    {
      System.err.println("The report was not found in the classpath"); //$NON-NLS-1$
      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
      System.exit(1);
      return;
    }

    final MasterReport report;
    try
    {
      report = gen.parseReport(reportURL);
    }
    catch (Exception e)
    {
      System.err.println("The report could not be parsed."); //$NON-NLS-1$
      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportGenerator

   * @param args ignored.
   */
  public static void main(final String[] args)
  {
    ClassicEngineBoot.getInstance().start();
    final ReportGenerator gen = ReportGenerator.getInstance();
    final URL reportURL = ObjectUtilities.getResourceRelative
        (REFERENCE_REPORT, DataSourceReferenceGenerator.class);
    if (reportURL == null)
    {
      System.err.println("The report was not found in the classpath"); //$NON-NLS-1$
      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
      System.exit(1);
      return;
    }

    final MasterReport report;
    try
    {
      report = gen.parseReport(reportURL);
    }
    catch (Exception e)
    {
      System.err.println("The report could not be parsed."); //$NON-NLS-1$
      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.