Search in sources :

Example 1 with FoundInspector

use of com.synopsys.integration.detectable.detectable.explanation.FoundInspector in project synopsys-detect by blackducksoftware.

the class GradleDetectable method extractable.

@Override
public DetectableResult extractable() throws DetectableException {
    List<Explanation> explanations = new ArrayList<>();
    gradleExe = gradleResolver.resolveGradle(environment);
    if (gradleExe == null) {
        return new ExecutableNotFoundDetectableResult("gradle");
    } else {
        explanations.add(new FoundExecutable(gradleExe));
    }
    gradleInspector = gradleInspectorResolver.resolveGradleInspector();
    if (gradleInspector == null) {
        return new InspectorNotFoundDetectableResult("gradle");
    } else {
        explanations.add(new FoundInspector(gradleInspector));
    }
    return new PassedDetectableResult(explanations);
}
Also used : ExecutableNotFoundDetectableResult(com.synopsys.integration.detectable.detectable.result.ExecutableNotFoundDetectableResult) FoundExecutable(com.synopsys.integration.detectable.detectable.explanation.FoundExecutable) Explanation(com.synopsys.integration.detectable.detectable.explanation.Explanation) ArrayList(java.util.ArrayList) FoundInspector(com.synopsys.integration.detectable.detectable.explanation.FoundInspector) PassedDetectableResult(com.synopsys.integration.detectable.detectable.result.PassedDetectableResult) InspectorNotFoundDetectableResult(com.synopsys.integration.detectable.detectable.result.InspectorNotFoundDetectableResult)

Aggregations

Explanation (com.synopsys.integration.detectable.detectable.explanation.Explanation)1 FoundExecutable (com.synopsys.integration.detectable.detectable.explanation.FoundExecutable)1 FoundInspector (com.synopsys.integration.detectable.detectable.explanation.FoundInspector)1 ExecutableNotFoundDetectableResult (com.synopsys.integration.detectable.detectable.result.ExecutableNotFoundDetectableResult)1 InspectorNotFoundDetectableResult (com.synopsys.integration.detectable.detectable.result.InspectorNotFoundDetectableResult)1 PassedDetectableResult (com.synopsys.integration.detectable.detectable.result.PassedDetectableResult)1 ArrayList (java.util.ArrayList)1