configuration_file_parser.segment.ImportPaser Maven / Gradle / Ivy
package configuration_file_parser.segment;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.configuration2.Configuration;
import constants.BRunnerKeywords;
/**
* Parses import declarations.
*/
public class ImportPaser {
/**
* @param config file
* @return the list of files to import
*/
public static List parse(Configuration config) {
String[] res = config.getStringArray(BRunnerKeywords.IMPORT.kw);
return Arrays.asList(res);
}
}