|
12 | 12 | import java.util.Set;
|
13 | 13 | import java.util.stream.Collectors;
|
14 | 14 |
|
15 |
| -import com.devonfw.tools.ide.context.AbstractIdeContext; |
16 |
| -import com.devonfw.tools.ide.context.IdeContext; |
17 |
| -import com.devonfw.tools.ide.context.IdeContextConsole; |
18 |
| -import com.devonfw.tools.ide.log.IdeLogLevel; |
19 |
| -import com.devonfw.tools.ide.url.model.file.UrlSecurityJsonFile; |
20 |
| -import com.devonfw.tools.ide.url.model.file.json.UrlSecurityWarning; |
21 |
| -import com.devonfw.tools.ide.url.model.folder.UrlVersion; |
22 |
| -import com.devonfw.tools.ide.url.updater.AbstractUrlUpdater; |
23 |
| -import com.devonfw.tools.ide.url.updater.UpdateManager; |
24 |
| -import com.devonfw.tools.ide.util.MapUtil; |
25 |
| -import com.devonfw.tools.ide.version.BoundaryType; |
26 |
| -import com.devonfw.tools.ide.version.VersionIdentifier; |
27 |
| -import com.devonfw.tools.ide.version.VersionRange; |
28 | 15 | import org.owasp.dependencycheck.Engine;
|
29 | 16 | import org.owasp.dependencycheck.analyzer.AbstractAnalyzer;
|
30 | 17 | import org.owasp.dependencycheck.analyzer.AnalysisPhase;
|
|
55 | 42 | import org.owasp.dependencycheck.utils.Pair;
|
56 | 43 | import org.owasp.dependencycheck.utils.Settings;
|
57 | 44 |
|
| 45 | +import com.devonfw.tools.ide.context.AbstractIdeContext; |
| 46 | +import com.devonfw.tools.ide.context.IdeContext; |
| 47 | +import com.devonfw.tools.ide.context.IdeContextConsole; |
| 48 | +import com.devonfw.tools.ide.log.IdeLogLevel; |
| 49 | +import com.devonfw.tools.ide.url.model.file.UrlSecurityJsonFile; |
| 50 | +import com.devonfw.tools.ide.url.model.file.json.UrlSecurityWarning; |
| 51 | +import com.devonfw.tools.ide.url.model.folder.UrlVersion; |
| 52 | +import com.devonfw.tools.ide.url.updater.AbstractUrlUpdater; |
| 53 | +import com.devonfw.tools.ide.url.updater.UpdateManager; |
| 54 | +import com.devonfw.tools.ide.util.MapUtil; |
| 55 | +import com.devonfw.tools.ide.version.BoundaryType; |
| 56 | +import com.devonfw.tools.ide.version.VersionIdentifier; |
| 57 | +import com.devonfw.tools.ide.version.VersionRange; |
| 58 | + |
58 | 59 | /**
|
59 | 60 | * This class is used to build the {@link UrlSecurityJsonFile} files for IDEasy. It scans the
|
60 | 61 | * {@link AbstractIdeContext#getUrlsPath() ide-url} folder for all tools, editions and versions and checks for
|
@@ -85,6 +86,7 @@ public class BuildSecurityJsonFiles {
|
85 | 86 | private static BigDecimal minV3Severity = new BigDecimal("0.0");
|
86 | 87 |
|
87 | 88 | private static final Set<String> actuallyIgnoredCves = new HashSet<>();
|
| 89 | + |
88 | 90 | private static final IdeContext context = new IdeContextConsole(IdeLogLevel.INFO, null, false);;
|
89 | 91 |
|
90 | 92 | /**
|
@@ -342,7 +344,7 @@ private static String getUrlVersion(String cpeVersion, Map<String, String> cpeTo
|
342 | 344 |
|
343 | 345 | String urlVersion = null;
|
344 | 346 | if (cpeVersion != null) {
|
345 |
| - if (cpeToUrlVersion!= null && cpeToUrlVersion.containsKey(cpeVersion)) { |
| 347 | + if (cpeToUrlVersion != null && cpeToUrlVersion.containsKey(cpeVersion)) { |
346 | 348 | urlVersion = cpeToUrlVersion.get(cpeVersion);
|
347 | 349 | } else {
|
348 | 350 | urlVersion = urlUpdater.mapCpeVersionToUrlVersion(cpeVersion);
|
|
0 commit comments