use of com.synopsys.integration.detectable.detectable.result.GivenFileNotFoundDetectableResult in project synopsys-detect by blackducksoftware.
the class ConanLockfileDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
if (conanLockfileExtractorOptions.getLockfilePath().isPresent()) {
Path givenLockfilePath = conanLockfileExtractorOptions.getLockfilePath().get();
File userProvidedLockfile = givenLockfilePath.toFile();
if (userProvidedLockfile.exists()) {
lockfile = userProvidedLockfile;
} else {
logger.debug("File {} does not exist", givenLockfilePath);
return new GivenFileNotFoundDetectableResult(givenLockfilePath.toString());
}
}
return new PassedDetectableResult();
}
Aggregations