APISonar


org.owasp.dependencycheck.reporting.ReportGenerator.Format.XML

> org > owasp > dependencycheck > reporting > ReportGenerator > Format > XML
org APIs owasp APIs dependencycheck APIs reporting APIs ReportGenerator APIs Format APIs XML APIs

Example 1
private DependencyCheckScanAgent createScanAgent() {
        final DependencyCheckScanAgent scanAgent = new DependencyCheckScanAgent();
        scanAgent.setApplicationName("Dependency-Track");
        //the following does not work because it will be over-ridden by the system
        //  properties configured during surefire/failsafe
        //scanAgent.setDataDirectory(DATA_DIR.getAbsolutePath());
        scanAgent.setCentralAnalyzerEnabled(false);
        scanAgent.setReportOutputDirectory(REPORT_DIR.getAbsolutePath());
        scanAgent.setReportFormat(ReportGenerator.Format.XML);
        scanAgent.setAutoUpdate(true);
        scanAgent.setUpdateOnly(false);
        return scanAgent;
    }