use of com.synopsys.integration.detectable.detectable.result.ExecutablesNotFoundDetectableResult in project synopsys-detect by blackducksoftware.
the class DartPubDepDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
if (!pubspecLock.isPresent() && pubspecYaml.isPresent()) {
return new PubSpecLockNotFoundDetectableResult(environment.getDirectory().getAbsolutePath());
} else if (pubspecLock.isPresent() && !pubspecYaml.isPresent()) {
return new FileNotFoundDetectableResult(PUBSPEC_LOCK_FILENAME);
}
dartExe = dartResolver.resolveDart();
flutterExe = flutterResolver.resolveFlutter();
if (dartExe == null && flutterExe == null) {
return new ExecutablesNotFoundDetectableResult(Arrays.asList("dart", "flutter"));
}
return new PassedDetectableResult();
}
Aggregations