use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class DartPubSpecLockDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.eitherFile(PUBSPEC_YAML_FILENAME, PUBSPEC_LOCK_FILENAME, yaml -> pubspecYaml = yaml, lock -> pubspecLock = lock);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class GitParseDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requires = new Requirements(fileFinder, environment);
File gitDirectory = requires.directory(GIT_DIRECTORY_NAME);
requires.ifCurrentlyMet(() -> {
gitConfigFile = requires.file(gitDirectory, GIT_CONFIG_FILENAME);
gitHeadFile = requires.file(gitDirectory, GIT_HEAD_FILENAME);
});
return requires.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class CpanCliDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.file(MAKEFILE);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class PackratLockDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
packratLockFile = requirements.file(PACKRATLOCK_FILE_NAME);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class ConanCliDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
Requirements requirements = new Requirements(fileFinder, environment);
conanExe = requirements.executable(() -> conanResolver.resolveConan(environment), "conan");
return requirements.result();
}
Aggregations