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);