added logging

Former-commit-id: ab39408750a77fb70d05b7115bf6c6ace4f7ff52
This commit is contained in:
Jeremy Long
2014-12-17 11:15:32 -05:00
parent 2d389ba73f
commit 2306327057

View File

@@ -54,6 +54,11 @@ public class Engine extends org.owasp.dependencycheck.Engine {
public Engine(MavenProject project) throws DatabaseException {
this.currentProject = project;
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) {
System.setProperty(Settings.KEYS.AUTO_UPDATE, Boolean.FALSE.toString());
}