use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class NugetProjectInspectorDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.anyFileMatchesPatterns(SUPPORTED_PROJECT_PATTERNS);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class PearCliDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
Requirements requirements = new Requirements(fileFinder, environment);
pearExe = requirements.executable(pearResolver::resolvePear, "pear");
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class PipfileLockDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.eitherFile(PIPFILE_FILENAME, PIPFILE_LOCK_FILENAME, pipfile -> {
}, pipfileLock -> this.pipfileLock = pipfileLock);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class RebarDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
Requirements requirements = new Requirements(fileFinder, environment);
rebarExe = requirements.executable(rebar3Resolver::resolveRebar3, "rebar3");
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class DartPubDepDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
pubspecYaml = requirements.optionalFile(PUBSPEC_YAML_FILENAME);
pubspecLock = requirements.optionalFile(PUBSPEC_LOCK_FILENAME);
if (pubspecYaml.isPresent() || pubspecLock.isPresent()) {
return requirements.result();
} else {
return new FilesNotFoundDetectableResult(PUBSPEC_LOCK_FILENAME, PUBSPEC_YAML_FILENAME);
}
}
Aggregations