use of com.synopsys.integration.detect.workflow.blackduck.font.AirGapFontLocator in project synopsys-detect by blackducksoftware.
the class DetectFontLoaderFactory method detectFontLoader.
public DetectFontLoader detectFontLoader() {
DetectFontLocator locator;
Optional<File> fontAirGapPath = airGapInspectorPaths.getFontsAirGapDirectory();
if (fontAirGapPath.isPresent()) {
locator = new AirGapFontLocator(airGapInspectorPaths);
} else {
locator = new OnlineDetectFontLocator(new DetectFontInstaller(artifactResolver, installedToolManager, installedToolLocator), directoryManager);
}
return new DetectFontLoader(locator);
}
Aggregations