use of com.synopsys.integration.detect.tool.impactanalysis.service.ImpactAnalysis in project synopsys-detect by blackducksoftware.
the class ImpactAnalysisUploadOperation method uploadImpactAnalysis.
public CodeLocationCreationData<ImpactAnalysisBatchOutput> uploadImpactAnalysis(Path impactAnalysisPath, NameVersion projectNameVersion, String codeLocationName) throws IntegrationException {
ImpactAnalysis impactAnalysis = new ImpactAnalysis(impactAnalysisPath, projectNameVersion.getName(), projectNameVersion.getVersion(), codeLocationName);
CodeLocationCreationData<ImpactAnalysisBatchOutput> codeLocationCreationData = impactAnalysisUploadService.uploadImpactAnalysis(impactAnalysis);
ImpactAnalysisBatchOutput impactAnalysisBatchOutput = codeLocationCreationData.getOutput();
impactAnalysisBatchOutput.throwExceptionForError(logger);
return codeLocationCreationData;
}
Aggregations