All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.mill.ltp.bit.LoopingBitTaskProducerConfigurationManager Maven / Gradle / Ivy

/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.mill.ltp.bit;

import java.io.File;

import org.duracloud.mill.config.ConfigConstants;
import org.duracloud.mill.ltp.LoopingTaskProducerConfigurationManager;
import org.duracloud.mill.ltp.PathFilterManager;

/**
 * @author Daniel Bernstein
 * Date: May 5, 2014
 */
public class LoopingBitTaskProducerConfigurationManager extends LoopingTaskProducerConfigurationManager {
    public PathFilterManager getPathFilterManager() {
        PathFilterManager pathFilterManager = new PathFilterManager();

        String exclusions = System.getProperty(ConfigConstants.LOOPING_BIT_EXCLUSION_LIST_KEY);
        if (exclusions != null) {
            pathFilterManager.setExclusions(new File(exclusions));
        }

        String inclusions = System.getProperty(ConfigConstants.LOOPING_BIT_INCLUSION_LIST_KEY);
        if (inclusions != null) {
            pathFilterManager.setInclusions(new File(inclusions));
        }

        return pathFilterManager;

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy