Search in sources :

Example 1 with PropertyInsufficientDetectableResult

use of com.synopsys.integration.detectable.detectable.result.PropertyInsufficientDetectableResult in project synopsys-detect by blackducksoftware.

the class MavenParseDetectable method applicable.

@Override
public DetectableResult applicable() {
    if (mavenParseOptions.isEnableLegacyMode()) {
        Requirements requirements = new Requirements(fileFinder, environment);
        pomXmlFile = requirements.file(POM_XML_FILENAME);
        return requirements.result();
    } else {
        return new PropertyInsufficientDetectableResult("Maven legacy buildless parse must be enabled.");
    }
}
Also used : Requirements(com.synopsys.integration.detectable.detectable.Requirements) PropertyInsufficientDetectableResult(com.synopsys.integration.detectable.detectable.result.PropertyInsufficientDetectableResult)

Example 2 with PropertyInsufficientDetectableResult

use of com.synopsys.integration.detectable.detectable.result.PropertyInsufficientDetectableResult 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)

Example 3 with PropertyInsufficientDetectableResult

use of com.synopsys.integration.detectable.detectable.result.PropertyInsufficientDetectableResult in project synopsys-detect by blackducksoftware.

the class MavenProjectInspectorDetectable method applicable.

@Override
public DetectableResult applicable() {
    if (!mavenParseOptions.isEnableLegacyMode()) {
        Requirements requirements = new Requirements(fileFinder, environment);
        requirements.file(POM_XML_FILENAME);
        return requirements.result();
    } else {
        return new PropertyInsufficientDetectableResult("Maven legacy buildless parse must be disabled for the project inspector to run.");
    }
}
Also used : Requirements(com.synopsys.integration.detectable.detectable.Requirements) PropertyInsufficientDetectableResult(com.synopsys.integration.detectable.detectable.result.PropertyInsufficientDetectableResult)

Aggregations

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