Search in sources :

Example 1 with AirGapFontLocator

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);
}
Also used : DetectFontLoader(com.synopsys.integration.detect.workflow.blackduck.DetectFontLoader) DetectFontInstaller(com.synopsys.integration.detect.workflow.blackduck.font.DetectFontInstaller) OnlineDetectFontLocator(com.synopsys.integration.detect.workflow.blackduck.font.OnlineDetectFontLocator) AirGapFontLocator(com.synopsys.integration.detect.workflow.blackduck.font.AirGapFontLocator) DetectFontLocator(com.synopsys.integration.detect.workflow.blackduck.font.DetectFontLocator) OnlineDetectFontLocator(com.synopsys.integration.detect.workflow.blackduck.font.OnlineDetectFontLocator) File(java.io.File)

Aggregations

DetectFontLoader (com.synopsys.integration.detect.workflow.blackduck.DetectFontLoader)1 AirGapFontLocator (com.synopsys.integration.detect.workflow.blackduck.font.AirGapFontLocator)1 DetectFontInstaller (com.synopsys.integration.detect.workflow.blackduck.font.DetectFontInstaller)1 DetectFontLocator (com.synopsys.integration.detect.workflow.blackduck.font.DetectFontLocator)1 OnlineDetectFontLocator (com.synopsys.integration.detect.workflow.blackduck.font.OnlineDetectFontLocator)1 File (java.io.File)1