Search in sources :

Example 1 with ConanCliOptions

use of com.synopsys.integration.detectable.detectables.conan.cli.config.ConanCliOptions in project synopsys-detect by blackducksoftware.

the class DetectableOptionFactory method createConanCliOptions.

public ConanCliOptions createConanCliOptions() {
    Path lockfilePath = detectConfiguration.getPathOrNull(DetectProperties.DETECT_CONAN_LOCKFILE_PATH);
    String additionalArguments = detectConfiguration.getNullableValue(DetectProperties.DETECT_CONAN_ARGUMENTS);
    Boolean preferLongFormExternalIds = detectConfiguration.getValue(DetectProperties.DETECT_CONAN_REQUIRE_PREV_MATCH);
    EnumListFilter<ConanDependencyType> dependencyTypeFilter = createConanDependencyTypeFilter();
    return new ConanCliOptions(lockfilePath, additionalArguments, dependencyTypeFilter, preferLongFormExternalIds);
}
Also used : Path(java.nio.file.Path) ConanCliOptions(com.synopsys.integration.detectable.detectables.conan.cli.config.ConanCliOptions) ConanDependencyType(com.synopsys.integration.detectable.detectables.conan.cli.config.ConanDependencyType)

Aggregations

ConanCliOptions (com.synopsys.integration.detectable.detectables.conan.cli.config.ConanCliOptions)1 ConanDependencyType (com.synopsys.integration.detectable.detectables.conan.cli.config.ConanDependencyType)1 Path (java.nio.file.Path)1