use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class SwiftCliDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
Requirements requirements = new Requirements(fileFinder, environment);
swiftExecutable = requirements.executable(swiftResolver::resolveSwift, "swift");
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class SwiftCliDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.file(PACKAGE_SWIFT_FILENAME);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class SwiftPackageResolvedDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
requirements.eitherFile(PACKAGE_SWIFT_FILENAME, PACKAGE_RESOLVED_FILENAME);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class PnpmLockDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
pnpmLockYaml = requirements.file(PNPM_LOCK_YAML_FILENAME);
packageJson = requirements.optionalFile(PACKAGE_JSON, () -> logger.warn("Pnpm applied but it could not find a package.json so project name and version may not be determined."));
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements 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