use of com.fasterxml.jackson.databind.SequenceWriter in project asterixdb by apache.
the class GenerateFileMojo method persistLicenseMap.
private void persistLicenseMap() throws IOException {
if (licenseMapOutputFile != null) {
licenseMapOutputFile.getParentFile().mkdirs();
SequenceWriter sw = new ObjectMapper().writerWithDefaultPrettyPrinter().writeValues(licenseMapOutputFile).init(true);
for (LicensedProjects entry : licenseMap.values()) {
sw.write(entry);
}
sw.close();
}
}
Aggregations