Search in sources :

Example 1 with ImpactAnalysis

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;
}
Also used : ImpactAnalysis(com.synopsys.integration.detect.tool.impactanalysis.service.ImpactAnalysis) ImpactAnalysisBatchOutput(com.synopsys.integration.detect.tool.impactanalysis.service.ImpactAnalysisBatchOutput)

Aggregations

ImpactAnalysis (com.synopsys.integration.detect.tool.impactanalysis.service.ImpactAnalysis)1 ImpactAnalysisBatchOutput (com.synopsys.integration.detect.tool.impactanalysis.service.ImpactAnalysisBatchOutput)1