fix(nuget): Dotnet and Exe inspectors were switched.
@@ -52,7 +52,7 @@ public class OnlineNugetInspectorInstaller implements NugetInspectorInstaller {
}
@Override
- public File installExeInspector() throws DetectableException {
+ public File installDotnetInspector() throws DetectableException {
try {
logger.info("Will attempt to resolve the dotnet inspector version.");
Optional<String> source = artifactResolver.resolveArtifactLocation(ArtifactoryConstants.ARTIFACTORY_URL, ArtifactoryConstants.NUGET_INSPECTOR_REPO, ArtifactoryConstants.NUGET_INSPECTOR_PROPERTY,
@@ -65,7 +65,7 @@ public class OnlineNugetInspectorInstaller implements NugetInspectorInstaller {
}
@Override
- public File installDotnetInspector() throws DetectableException {
+ public File installExeInspector() throws DetectableException {
try {
logger.info("Will attempt to resolve the classic inspector version.");
Optional<String> source = artifactResolver.resolveArtifactLocation(ArtifactoryConstants.ARTIFACTORY_URL, ArtifactoryConstants.CLASSIC_NUGET_INSPECTOR_REPO, ArtifactoryConstants.CLASSIC_NUGET_INSPECTOR_PROPERTY,
@@ -93,7 +93,8 @@ public class OnlineNugetInspectorInstaller implements NugetInspectorInstaller {
DetectZipUtil.unzip(nupkgFile, inspectorFolder, Charset.defaultCharset());
return inspectorFolder;
} else {
- throw new DetectableException("Unable to find inspector folder even after zip extraction attempt.");
+ logger.debug("Inspector is already downloaded, folder exists.");
+ return inspectorFolder;
}
} else {
throw new DetectableException("Unable to find nuget inspector location in Artifactory.");
