fix(help): Update deprecation messages for host.url and offlince.local.path
@@ -74,7 +74,6 @@ import com.synopsys.integration.log.LogLevel;
// java:S1123: Warning about deprecations not having Java doc.
public class DetectProperties {
private static final String POLARIS_CLI_DEPRECATION_MESSAGE = "This property is being removed. Detect will no longer invoke the Polaris CLI.";
- private static final String SIGNATURE_SCANNER_PROPERTY_DEPRECATION_MESSAGE = "This property is now deprecated. In future releases, all signature scanner arguments will be passed to Detect via an alternative mechanism.";
private static final String EXCLUSION_PROPERTY_DEPRECATION_MESSAGE = "This property is now deprecated. In future versions of Detect, it will be consolidated with other exclusion properties.";
private DetectProperties() {
@@ -1742,7 +1741,7 @@ public class DetectProperties {
"To use a local signature scanner and force offline, specify the path where the signature scanner was unzipped. This will likely look similar to 'scan.cli-x.y.z' and includes the 'bin, icon, jre, and lib' directories of the expanded scan.cli.")
.setGroups(DetectGroup.SIGNATURE_SCANNER, DetectGroup.GLOBAL)
.setCategory(DetectCategory.Advanced)
- .setDeprecated(SIGNATURE_SCANNER_PROPERTY_DEPRECATION_MESSAGE, DetectMajorVersion.SEVEN, DetectMajorVersion.EIGHT);
+ .setDeprecated("This property is being deprecated. In the future, please use detect.blackduck.signature.scanner.local.path to specify a local signature scanner zip, and blackduck.offline.mode to run offline.", DetectMajorVersion.SEVEN, DetectMajorVersion.EIGHT);
@Deprecated
public static final DetectProperty<NullableStringProperty> DETECT_BLACKDUCK_SIGNATURE_SCANNER_HOST_URL =
@@ -1751,7 +1750,7 @@ public class DetectProperties {
.setHelp("If this url is set, an attempt will be made to use it to download the signature scanner. The server url provided must respect the Black Duck's urls for different operating systems.")
.setGroups(DetectGroup.SIGNATURE_SCANNER, DetectGroup.GLOBAL)
.setCategory(DetectCategory.Advanced)
- .setDeprecated(SIGNATURE_SCANNER_PROPERTY_DEPRECATION_MESSAGE, DetectMajorVersion.SEVEN, DetectMajorVersion.EIGHT);
+ .setDeprecated("This property is being deprecated. Detect will no longer support downloading a signature scanner from a custom url.", DetectMajorVersion.SEVEN, DetectMajorVersion.EIGHT);
@Deprecated
public static final DetectProperty<LongProperty> DETECT_REPORT_TIMEOUT =
