Search in sources :

Example 1 with JavaPropsMapper

use of com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper in project streamline by hortonworks.

the class ConfigFileWriter method writeConfigToPropertiesTypeFile.

private void writeConfigToPropertiesTypeFile(Map<String, String> configuration, File destPath) throws IOException {
    ObjectMapper objectMapper = new JavaPropsMapper();
    objectMapper.writeValue(destPath, configuration);
}
Also used : JavaPropsMapper(com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 JavaPropsMapper (com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper)1