-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add new property for Nuget Artifacts Path #1355
Conversation
public static final NullablePathProperty DETECT_NUGET_ARTIFACTS_PATH = | ||
NullablePathProperty.newBuilder("detect.nuget.artifacts.path") | ||
.setInfo("Nuget Artifacts Path", DetectPropertyFromVersion.VERSION_10_3_0) | ||
.setHelp("The path to the build artifacts of the nuget project if not stored on regular path. i.e the path to the output of obj directory if not stored on the default path.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion for condensing the help message. (Which hopefully still makes sense. ; ) )
"The path to the obj directory build artifacts of the NuGet project, if not the default path."
@@ -42,6 +42,9 @@ public static List<String> fromInspectorOptions(NugetInspectorOptions nugetInspe | |||
options.add("--excluded_dependency_types=" + toCommaSeparatedStringSet(nugetInspectorOptions.getNugetExcludedDependencyTypes())); | |||
} | |||
|
|||
nugetInspectorOptions.getNugetArtifactsPath() | |||
.ifPresent(arg -> options.add("--artifacts_path=" + arg.toString())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace artifact name with nugetArtifactsPath or nuget.artifacts.path.
This PR is for adding a new property for the artifacts path in nuget inspector as part of enhancement did in the corresponding PR: blackducksoftware/detect-nuget-inspector#26