dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java
/**
     * Writes the report to the given output directory.
     *
     * @param applicationName the name of the application/project
     * @param groupId the Maven groupId
     * @param artifactId the Maven artifactId
     * @param version the Maven version
     * @param outputDir the path to the output directory (can include the full
     * file name if the format is not ALL)
     * @param format the report format (ALL, HTML, CSV, JSON, etc.)
     * @throws ReportException thrown if there is an error generating the report
     */
Writes the report to the given output directory.
Writes the report to the given output directory .
public synchronized void writeReports(String applicationName, String groupId, String artifactId,
            String version, File outputDir, String format) throws ReportException {
        if (mode == Mode.EVIDENCE_COLLECTION) {
            throw new UnsupportedOperationException("Cannot generate report in evidence collection mode.");
        }
        final DatabaseProperties prop = database.getDatabaseProperties();
        final ReportGenerator r = new ReportGenerator(applicationName, groupId, artifactId, version, dependencies, getAnalyzers(), prop);
        try {
            r.write(outputDir.getAbsolutePath(), format);
        } catch (ReportException ex) {
            final String msg = String.format("Error generating the report for %s", applicationName);
            throw new ReportException(msg, ex);
        }
    }
public synchronized void writeReports ( String applicationName , String groupId , String artifactId , String version , File outputDir , String format ) throws ReportException { if ( mode == Mode . EVIDENCE_COLLECTION ) { throw new UnsupportedOperationException ( "Cannot generate report in evidence collection mode." ) ; } final DatabaseProperties prop = database . getDatabaseProperties ( ) ; final ReportGenerator r = new ReportGenerator ( applicationName , groupId , artifactId , version , dependencies , getAnalyzers ( ) , prop ) ; try { r . write ( outputDir . getAbsolutePath ( ) , format ) ; } catch ( ReportException ex ) { final String msg = String . format ( "Error generating the report for %s" , applicationName ) ; throw new ReportException ( msg , ex ) ; } }
Writes the report to the given output directory.
Writes the report to the given output directory .