
org.jsoftware.config.PropertiesConfigurationParser Maven / Gradle / Ivy
package org.jsoftware.config;
import org.codehaus.plexus.util.StringUtils;
import org.jsoftware.config.dialect.DefaultDialect;
import org.jsoftware.config.dialect.DialectFinder;
import org.jsoftware.impl.DirectoryPatchScanner;
import org.jsoftware.impl.NamePatchScanner;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class PropertiesConfigurationParser extends AbstractConfigurationParser {
@Override
public Collection parse(InputStream input) throws IOException, ParseException {
Properties p = new Properties();
p.load(input);
evaluatePropertyValuesInternal(p);
Map confs = new HashMap();
for(Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy