Search in sources :

Example 1 with PackageResolvedNotFoundDetectableResult

use of com.synopsys.integration.detectable.detectable.result.PackageResolvedNotFoundDetectableResult 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();
}
Also used : PackageResolvedNotFoundDetectableResult(com.synopsys.integration.detectable.detectable.result.PackageResolvedNotFoundDetectableResult) Requirements(com.synopsys.integration.detectable.detectable.Requirements)

Aggregations

Requirements (com.synopsys.integration.detectable.detectable.Requirements)1 PackageResolvedNotFoundDetectableResult (com.synopsys.integration.detectable.detectable.result.PackageResolvedNotFoundDetectableResult)1