mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 02:51:27 +01:00
added logging
Former-commit-id: ab39408750a77fb70d05b7115bf6c6ace4f7ff52
This commit is contained in:
@@ -54,6 +54,11 @@ public class Engine extends org.owasp.dependencycheck.Engine {
|
|||||||
public Engine(MavenProject project) throws DatabaseException {
|
public Engine(MavenProject project) throws DatabaseException {
|
||||||
this.currentProject = project;
|
this.currentProject = project;
|
||||||
final MavenProject parent = getRootParent();
|
final MavenProject parent = getRootParent();
|
||||||
|
if (parent != null) {
|
||||||
|
LOGGER.fine(String.format("Checking root project, %s, if updates have already been completed", parent.getArtifactId()));
|
||||||
|
} else {
|
||||||
|
LOGGER.fine("Checking root project, null, if updates have already been completed");
|
||||||
|
}
|
||||||
if (parent != null && parent.getContextValue("dependency-check-data-was-updated") != null) {
|
if (parent != null && parent.getContextValue("dependency-check-data-was-updated") != null) {
|
||||||
System.setProperty(Settings.KEYS.AUTO_UPDATE, Boolean.FALSE.toString());
|
System.setProperty(Settings.KEYS.AUTO_UPDATE, Boolean.FALSE.toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user