mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 00:03:43 +01:00
Updated to accomadate removing dependencies (used by the DependencyBundlingAnalyzer)
Former-commit-id: c5f530bce2d82e30795d327c8da03b66bce7785b
This commit is contained in:
@@ -209,10 +209,16 @@ public class Engine {
|
||||
final List<Analyzer> analyzerList = analyzers.get(phase);
|
||||
|
||||
for (Analyzer a : analyzerList) {
|
||||
for (Dependency d : dependencies) {
|
||||
Iterator<Dependency> itrDependencies = dependencies.iterator();
|
||||
while (itrDependencies.hasNext()) {
|
||||
Dependency d = itrDependencies.next();
|
||||
if (a.supportsExtension(d.getFileExtension())) {
|
||||
try {
|
||||
a.analyze(d, this);
|
||||
//the following is mainly to deal with the DependencyBundlingAnalyzer
|
||||
if (a.getPostAnalysisAction() == Analyzer.PostAnalysisAction.REMOVE_JAR) {
|
||||
itrDependencies.remove();
|
||||
}
|
||||
} catch (AnalysisException ex) {
|
||||
d.addAnalysisException(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user