Skip to content
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

Merged
merged 3 commits into from
Feb 6, 2025
Merged

Conversation

devmehtabd
Copy link
Contributor

@devmehtabd devmehtabd commented Feb 5, 2025

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

@devmehtabd devmehtabd requested a review from dterrybd February 5, 2025 19:42
@devmehtabd devmehtabd self-assigned this Feb 5, 2025
@devmehtabd devmehtabd marked this pull request as ready for review February 5, 2025 19:42
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.")
Copy link
Contributor

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()));
Copy link
Contributor

@gopannabd gopannabd Feb 6, 2025

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.

@devmehtabd devmehtabd merged commit 725ac23 into master Feb 6, 2025
@devmehtabd devmehtabd deleted the dev/devm/IDETECT-2437-2 branch February 6, 2025 17:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants