Fixing NugetInspectorPackager
@@ -69,7 +69,7 @@ class NugetInspectorPackager {
return null
}
- String[] options = [
+ def options = [
"--target_path=${sourcePath}",
"--output_directory=${outputDirectory.getAbsolutePath()}",
"--ignore_failure=${inspectorIgnoreFailure}"
@@ -110,7 +110,16 @@ class NugetInspectorPackager {
}
private CommandOutput installInspectorFromNugetDotOrg(File sourceDirectory, File outputDirectory, File nugetCommand) {
- Command installCommand = new Command(sourceDirectory, nugetCommand.absolutePath, 'install', inspectorPackageName, '-Version', inspectorPackageVersion, '-OutputDirectory', outputDirectory.absolutePath)
+ def options = [
+ 'install',
+ inspectorPackageName,
+ '-Version',
+ inspectorPackageVersion,
+ '-OutputDirectory',
+ outputDirectory.absolutePath
+ ]
+
+ Command installCommand = new Command(sourceDirectory, nugetCommand.absolutePath, options)
commandRunner.executeLoudly(installCommand)
}
}
