Search in sources :

Example 1 with SequenceWriter

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();
    }
}
Also used : LicensedProjects(org.apache.hyracks.maven.license.project.LicensedProjects) SequenceWriter(com.fasterxml.jackson.databind.SequenceWriter) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 SequenceWriter (com.fasterxml.jackson.databind.SequenceWriter)1 LicensedProjects (org.apache.hyracks.maven.license.project.LicensedProjects)1