Search in sources :

Example 1 with TomlWriter

use of com.electronwill.nightconfig.toml.TomlWriter in project BYG by AOCAWOL.

the class CommentedConfigBuilder method build.

public void build() {
    if (this.filePath == null) {
        throw new UnsupportedOperationException("This file cannot be parsed w/ a null file path.");
    }
    TomlWriter writer = new TomlWriter();
    writer.write(organizeConfig(config), filePath.toFile(), WritingMode.REPLACE);
}
Also used : TomlWriter(com.electronwill.nightconfig.toml.TomlWriter)

Aggregations

TomlWriter (com.electronwill.nightconfig.toml.TomlWriter)1