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.");
}
}
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();
}
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.");
}
}
Aggregations