List of usage examples for org.apache.commons.configuration2.builder.fluent Configurations xmlBuilder
public FileBasedConfigurationBuilder<XMLConfiguration> xmlBuilder(final String path)
From source file:com.heliosdecompiler.helios.Helios.java
private static Configuration loadConfiguration() throws IOException, ConfigurationException { Configurations configurations = new Configurations(); File file = Constants.SETTINGS_FILE_XML; if (!file.exists()) { XMLConfiguration tempConfiguration = new XMLConfiguration(); new FileHandler(tempConfiguration).save(file); }/*from ww w .ja va 2s . c om*/ FileBasedConfigurationBuilder<XMLConfiguration> builder = configurations.xmlBuilder(file); builder.setAutoSave(true); return builder.getConfiguration(); }