use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class GoModCliDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.file(GOMOD_FILENAME_PATTERN);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class ConanLockfileDetectable method applicable.
@Override
public DetectableResult applicable() {
if (conanLockfileExtractorOptions.getLockfilePath().isPresent()) {
Path conanLockFile = conanLockfileExtractorOptions.getLockfilePath().get();
logger.debug("Conan Lockfile detectable applies because user supplied lockfile path {}", conanLockFile);
// TODO: Should lock file be reported as a relevant file?
return new PassedDetectableResult(new FoundFile(conanLockFile.toFile()));
}
Requirements requirements = new Requirements(fileFinder, environment);
lockfile = requirements.file(CONANLOCKFILE);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class CargoDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.eitherFile(CARGO_LOCK_FILENAME, CARGO_TOML_FILENAME, foundLock -> cargoLock = foundLock, foundToml -> cargoToml = foundToml);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class BitbakeDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
Requirements requirements = new Requirements(fileFinder, environment);
bashExe = requirements.executable(bashResolver::resolveBash, "bash");
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class CarthageDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.eitherFile(CARTFILE_FILENAME, CARTFILE_RESOLVED_FILENAME, // Used only to identify Carthage projects
foundCartfile -> {
}, foundCartfileResolved -> cartfileResolved = foundCartfileResolved);
return requirements.result();
}
Aggregations