All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lewisd.maven.lint.report.AbstractReportWriter Maven / Gradle / Ivy

package com.lewisd.maven.lint.report;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;


public abstract class AbstractReportWriter implements ReportWriter {

	protected FileWriter createOutputFileWriter(final File outputFile) throws IOException {
        File parentFile = outputFile.getAbsoluteFile().getParentFile();
        if (!parentFile.exists()) {
            parentFile.mkdirs();
        }
		return new FileWriter(outputFile);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy