Search in sources :

Example 1 with FileReferenceType

use of com.synopsys.integration.detectable.detectables.xcode.model.FileReferenceType in project synopsys-detect by blackducksoftware.

the class XcodeWorkspaceParser method parseReference.

private XcodeFileReference parseReference(String locationString) {
    String location = StringUtils.removeStart(locationString, "group:");
    FileReferenceType fileReferenceType = FileReferenceType.DIRECTORY;
    if (StringUtils.endsWith(location, ".xcodeproj")) {
        fileReferenceType = FileReferenceType.XCODE_PROJECT;
    }
    return new XcodeFileReference(Paths.get(location), fileReferenceType);
}
Also used : XcodeFileReference(com.synopsys.integration.detectable.detectables.xcode.model.XcodeFileReference) FileReferenceType(com.synopsys.integration.detectable.detectables.xcode.model.FileReferenceType)

Aggregations

FileReferenceType (com.synopsys.integration.detectable.detectables.xcode.model.FileReferenceType)1 XcodeFileReference (com.synopsys.integration.detectable.detectables.xcode.model.XcodeFileReference)1