![JAR search and dependency download from the Maven repository](/logo.png)
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.PathFilterManager;
import org.duracloud.mill.ltp.LoopingTaskProducerConfigurationManager;
/**
* @author Daniel Bernstein
* Date: May 5, 2014
*/
public class LoopingBitTaskProducerConfigurationManager extends LoopingTaskProducerConfigurationManager {
public PathFilterManager getPathFilterManager(){
PathFilterManager pathFilterManager = new PathFilterManager();
String exclusions = System.getProperty(ConfigConstants.EXCLUSION_LIST_KEY);
if(exclusions != null){
pathFilterManager.setExclusions(new File(exclusions));
}
String inclusions = System.getProperty(ConfigConstants.INCLUSION_LIST_KEY);
if(inclusions != null){
pathFilterManager.setInclusions(new File(inclusions));
}
return pathFilterManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy