Search in sources :

Example 1 with PropertyProvided

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

the class BitbakeDetectable method applicable.

@Override
public DetectableResult applicable() {
    Requirements requirements = new Requirements(fileFinder, environment);
    foundBuildEnvScript = requirements.file(bitbakeDetectableOptions.getBuildEnvName());
    if (bitbakeDetectableOptions.getPackageNames() == null || bitbakeDetectableOptions.getPackageNames().isEmpty()) {
        return new PropertyInsufficientDetectableResult("Bitbake requires that at least one package name is provided.");
    } else {
        requirements.explain(new PropertyProvided("Bitbake Package Names"));
    }
    return requirements.result();
}
Also used : PropertyProvided(com.synopsys.integration.detectable.detectable.explanation.PropertyProvided) Requirements(com.synopsys.integration.detectable.detectable.Requirements) PropertyInsufficientDetectableResult(com.synopsys.integration.detectable.detectable.result.PropertyInsufficientDetectableResult)

Aggregations

Requirements (com.synopsys.integration.detectable.detectable.Requirements)1 PropertyProvided (com.synopsys.integration.detectable.detectable.explanation.PropertyProvided)1 PropertyInsufficientDetectableResult (com.synopsys.integration.detectable.detectable.result.PropertyInsufficientDetectableResult)1