use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class NpmPackageJsonParseDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
packageJsonFile = requirements.file(PACKAGE_JSON);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class XcodeProjectDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
foundCodeLocationFile = requirements.directory("*.xcodeproj");
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class XcodeProjectDetectable method extractable.
@Override
public DetectableResult extractable() {
Requirements requirements = new Requirements(fileFinder, environment);
File swiftPMDirectory = new File(foundCodeLocationFile, PACKAGE_RESOLVED_RELATIVE_PATH);
foundPackageResolvedFile = requirements.optionalFile(swiftPMDirectory, SwiftPackageResolvedDetectable.PACKAGE_RESOLVED_FILENAME, () -> {
/* no-op */
});
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class YarnLockDetectable method applicable.
@Override
public DetectableResult applicable() {
Requirements requirements = new Requirements(fileFinder, environment);
yarnLock = requirements.file(YARN_LOCK_FILENAME);
packageJson = requirements.file(YARN_PACKAGE_JSON);
return requirements.result();
}
use of com.synopsys.integration.detectable.detectable.Requirements in project synopsys-detect by blackducksoftware.
the class SwiftPackageResolvedDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
Requirements requirements = new Requirements(fileFinder, environment);
foundPackageResolvedFile = requirements.file(PACKAGE_RESOLVED_FILENAME, () -> new PackageResolvedNotFoundDetectableResult(environment.getDirectory().getAbsolutePath()));
return requirements.result();
}
Aggregations