use of com.blackducksoftware.integration.hub.detect.util.executable.Executable in project hub-detect by blackducksoftware.
the class DotNetCoreNugetInspector method execute.
@Override
public ExecutableOutput execute(File workingDirectory, List<String> arguments) throws ExecutableRunnerException {
List<String> dotnetArguments = new ArrayList<String>();
dotnetArguments.add(inspectorDll);
dotnetArguments.addAll(arguments);
final Executable hubNugetInspectorExecutable = new Executable(workingDirectory, dotnetExe, dotnetArguments);
final ExecutableOutput executableOutput = executableRunner.execute(hubNugetInspectorExecutable);
return executableOutput;
}
use of com.blackducksoftware.integration.hub.detect.util.executable.Executable in project hub-detect by blackducksoftware.
the class PipInspectorExtractor method runInspector.
private List<String> runInspector(final File sourceDirectory, final String pythonPath, final File inspectorScript, final String projectName, final String requirementsFilePath) throws ExecutableRunnerException {
final List<String> inspectorArguments = new ArrayList<>();
inspectorArguments.add(inspectorScript.getAbsolutePath());
if (StringUtils.isNotBlank(requirementsFilePath)) {
final File requirementsFile = new File(requirementsFilePath);
inspectorArguments.add(String.format("--requirements=%s", requirementsFile.getAbsolutePath()));
}
if (StringUtils.isNotBlank(projectName)) {
inspectorArguments.add(String.format("--projectname=%s", projectName));
}
final Executable pipInspector = new Executable(sourceDirectory, pythonPath, inspectorArguments);
return executableRunner.execute(pipInspector).getStandardOutputAsList();
}
Aggregations