From 60faddff9b9a81a085f13f549dce849b83b990b0 Mon Sep 17 00:00:00 2001 From: bloihl Date: Tue, 20 Sep 2016 12:40:07 -0700 Subject: [PATCH] exposing hints file through ant configuration as setHintsFile --- .../owasp/dependencycheck/taskdefs/Check.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/dependency-check-ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java b/dependency-check-ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java index 6c38786d4..afc2cdb86 100644 --- a/dependency-check-ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java +++ b/dependency-check-ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java @@ -346,6 +346,28 @@ public class Check extends Update { public void setSuppressionFile(String suppressionFile) { this.suppressionFile = suppressionFile; } + /** + * The path to the suppression file. + */ + private String hintsFile; + + /** + * Get the value of hintsFile. + * + * @return the value of hintsFile + */ + public String getHintsFile() { + return hintsFile; + } + + /** + * Set the value of hintsFile. + * + * @param hintsFile new value of hintsFile + */ + public void setHintsFile(String hintsFile) { + this.hintsFile = hintsFile; + } /** * flag indicating whether or not to show a summary of findings. */ @@ -904,6 +926,7 @@ public class Check extends Update { super.populateSettings(); Settings.setBooleanIfNotNull(Settings.KEYS.AUTO_UPDATE, autoUpdate); Settings.setStringIfNotEmpty(Settings.KEYS.SUPPRESSION_FILE, suppressionFile); + Settings.setStringIfNotEmpty(Settings.KEYS.HINTS_FILE, hintsFile); Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_EXPERIMENTAL_ENABLED, enableExperimental); Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_JAR_ENABLED, jarAnalyzerEnabled); Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_PYTHON_DISTRIBUTION_ENABLED, pyDistributionAnalyzerEnabled);