Examples of analyzeDependencies()


Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

    private Engine executeDependencyCheck() throws DatabaseException {
        populateSettings();
        Engine engine = null;
        engine = new Engine();
        engine.setDependencies(this.dependencies);
        engine.analyzeDependencies();
        return engine;
    }

    /**
     * Generates the reports for a given dependency-check engine.
View Full Code Here

Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

        File suppression = new File(this.getClass().getClassLoader().getResource("commons-fileupload-1.2.1.suppression.xml").getPath());
        Settings.setBoolean(Settings.KEYS.AUTO_UPDATE, false);
        Settings.setBoolean(Settings.KEYS.ANALYZER_NEXUS_ENABLED, false);
        Engine engine = new Engine();
        engine.scan(file);
        engine.analyzeDependencies();
        Dependency dependency = getDependency(engine, file);
        int cveSize = dependency.getVulnerabilities().size();
        int cpeSize = dependency.getIdentifiers().size();
        assertTrue(cveSize > 0);
        assertTrue(cpeSize > 0);
View Full Code Here

Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

                            a.getGroupId(), a.getArtifactId(), a.getVersion());
                    LOGGER.info(msg);
                }
            }
        }
        localEngine.analyzeDependencies();

        return localEngine;
    }

    /**
 
View Full Code Here

Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

        Settings.setBoolean(Settings.KEYS.AUTO_UPDATE, autoUpdate);

        engine.scan(struts);
        engine.scan(axis);
        engine.scan(jetty);
        engine.analyzeDependencies();

        CveDB cveDB = new CveDB();
        cveDB.open();
        DatabaseProperties dbProp = cveDB.getDatabaseProperties();
        cveDB.close();
View Full Code Here

Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

            Engine engine = new Engine();

            int initial_size = engine.getDependencies().size();
            //instance.analyze(dependency, engine);
            engine.scan(file);
            engine.analyzeDependencies();
            int ending_size = engine.getDependencies().size();
            engine.cleanup();
            assertTrue(initial_size < ending_size);

        } finally {
View Full Code Here

Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

            Settings.setBoolean(Settings.KEYS.ANALYZER_NEXUS_ENABLED, false);
            Engine engine = new Engine();

            int initial_size = engine.getDependencies().size();
            engine.scan(file);
            engine.analyzeDependencies();
            int ending_size = engine.getDependencies().size();
            engine.cleanup();
            assertTrue(initial_size < ending_size);

        } finally {
View Full Code Here

Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

        Settings.setBoolean(Settings.KEYS.ANALYZER_NEXUS_ENABLED, false);
        Engine engine = new Engine();

        engine.scan(guice);
        engine.scan(spring);
        engine.analyzeDependencies();
        Dependency gdep = null;
        Dependency sdep = null;
        for (Dependency d : engine.getDependencies()) {
            if (d.getActualFile().equals(guice)) {
                gdep = d;
View Full Code Here

Examples of org.owasp.dependencycheck.Engine.analyzeDependencies()

                        engine.scan(file);
                    }
                }
            }
            try {
                engine.analyzeDependencies();
                DatabaseProperties prop = null;
                CveDB cve = null;
                try {
                    cve = new CveDB();
                    cve.open();
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.