Search in sources :

Example 1 with TildeInPathResolver

use of com.synopsys.integration.configuration.property.types.path.TildeInPathResolver in project synopsys-detect by blackducksoftware.

the class DetectBootFactory method createPathResolver.

public PathResolver createPathResolver() {
    PathResolver pathResolver;
    if (detectInfo.getCurrentOs() != OperatingSystemType.WINDOWS) {
        logger.info("Tilde's will be automatically resolved to USER HOME.");
        pathResolver = new TildeInPathResolver(SystemUtils.USER_HOME);
    } else {
        pathResolver = new SimplePathResolver();
    }
    return pathResolver;
}
Also used : TildeInPathResolver(com.synopsys.integration.configuration.property.types.path.TildeInPathResolver) SimplePathResolver(com.synopsys.integration.configuration.property.types.path.SimplePathResolver) TildeInPathResolver(com.synopsys.integration.configuration.property.types.path.TildeInPathResolver) PathResolver(com.synopsys.integration.configuration.property.types.path.PathResolver) SimplePathResolver(com.synopsys.integration.configuration.property.types.path.SimplePathResolver)

Aggregations

PathResolver (com.synopsys.integration.configuration.property.types.path.PathResolver)1 SimplePathResolver (com.synopsys.integration.configuration.property.types.path.SimplePathResolver)1 TildeInPathResolver (com.synopsys.integration.configuration.property.types.path.TildeInPathResolver)1