mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-04-11 11:17:07 +02:00
resolve issue #818
This commit is contained in:
@@ -35,8 +35,17 @@ public class SuppressionFile {
|
|||||||
*
|
*
|
||||||
* @param text the simple content.
|
* @param text the simple content.
|
||||||
*/
|
*/
|
||||||
public final void addText(String text) {
|
//public final void addConfigured(String text) {
|
||||||
this.path = text;
|
// this.path = text;
|
||||||
|
//}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the path to the suppression file.
|
||||||
|
*
|
||||||
|
* @param path
|
||||||
|
*/
|
||||||
|
public void setPath(String path) {
|
||||||
|
this.path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ the project's dependencies.
|
|||||||
<dependency-check projectname="Hello World"
|
<dependency-check projectname="Hello World"
|
||||||
reportoutputdirectory="${basedir}"
|
reportoutputdirectory="${basedir}"
|
||||||
reportformat="ALL">
|
reportformat="ALL">
|
||||||
|
<suppressionfile path="${basedir}/path/to/suppression.xml" />
|
||||||
<suppressionfile>path/to/suppression.xml</suppressionfile>
|
|
||||||
<fileset dir="lib">
|
<fileset dir="lib">
|
||||||
<include name="**/*.jar"/>
|
<include name="**/*.jar"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
@@ -46,12 +45,13 @@ proxyUsername | Defines the proxy user name.
|
|||||||
proxyPassword | Defines the proxy password. |
|
proxyPassword | Defines the proxy password. |
|
||||||
connectionTimeout | The URL Connection Timeout. |
|
connectionTimeout | The URL Connection Timeout. |
|
||||||
enableExperimental | Enable the [experimental analyzers](../analyzers/index.html). If not enabled the experimental analyzers (see below) will not be loaded or used. | false
|
enableExperimental | Enable the [experimental analyzers](../analyzers/index.html). If not enabled the experimental analyzers (see below) will not be loaded or used. | false
|
||||||
|
suppressionFile | The file path to the XML suppression file \- used to suppress [false positives](../general/suppression.html). |
|
||||||
|
|
||||||
The following nested elements can be set on the dependency-check task.
|
The following nested elements can be set on the dependency-check task.
|
||||||
|
|
||||||
Property | Description | Default Value
|
Element | Property | Description | Default Value
|
||||||
----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------
|
------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------
|
||||||
suppressionFile | The file path to the XML suppression file \- used to suppress [false positives](../general/suppression.html). Element can be specified multiple times. |
|
suppressionFile | path | The file path to the XML suppression file \- used to suppress [false positives](../general/suppression.html). Element can be specified multiple times. |
|
||||||
|
|
||||||
Analyzer Configuration
|
Analyzer Configuration
|
||||||
====================
|
====================
|
||||||
|
|||||||
@@ -78,8 +78,8 @@
|
|||||||
reportOutputDirectory="${project.build.directory}/suppression-report.html"
|
reportOutputDirectory="${project.build.directory}/suppression-report.html"
|
||||||
autoupdate="false"
|
autoupdate="false"
|
||||||
failBuildOnCVSS="3">
|
failBuildOnCVSS="3">
|
||||||
<suppressionfile>${project.build.directory}/test-classes/test-suppression1.xml</suppressionfile>
|
<suppressionfile path="${project.build.directory}/test-classes/test-suppression1.xml" />
|
||||||
<suppressionfile>${project.build.directory}/test-classes/test-suppression2.xml</suppressionfile>
|
<suppressionfile path="${project.build.directory}/test-classes/test-suppression2.xml" />
|
||||||
<fileset dir="${project.build.directory}/test-classes/jars">
|
<fileset dir="${project.build.directory}/test-classes/jars">
|
||||||
<include name="axis-1.4.jar"/>
|
<include name="axis-1.4.jar"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
autoupdate="false"
|
autoupdate="false"
|
||||||
failBuildOnCVSS="3"
|
failBuildOnCVSS="3"
|
||||||
suppressionFile="${project.build.directory}/test-classes/test-suppression1.xml">
|
suppressionFile="${project.build.directory}/test-classes/test-suppression1.xml">
|
||||||
<suppressionfile>${project.build.directory}/test-classes/test-suppression2.xml</suppressionfile>
|
<suppressionfile path="${project.build.directory}/test-classes/test-suppression2.xml"/>
|
||||||
<fileset dir="${project.build.directory}/test-classes/jars">
|
<fileset dir="${project.build.directory}/test-classes/jars">
|
||||||
<include name="axis-1.4.jar"/>
|
<include name="axis-1.4.jar"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
|
|||||||
Reference in New Issue
Block a user