use of com.synopsys.integration.detectable.detectable.SearchPattern in project synopsys-detect by blackducksoftware.
the class XcodeWorkspaceDetectable method extractable.
@Override
public DetectableResult extractable() {
Requirements requirements = new Requirements(fileFinder, environment);
File swiftPMDirectory = workspaceDirectory.toPath().resolve("xcshareddata/swiftpm").toFile();
requirements.anyFile(new SearchPattern(swiftPMDirectory, "Package.resolved", packageResolvedFile -> foundPackageResolvedFile = packageResolvedFile), new SearchPattern(workspaceDirectory, "contents.xcworkspacedata", workspaceDataFile -> foundWorkspaceDataFile = workspaceDataFile));
return requirements.result();
}
Aggregations