Update DefaultGenerator.java to call close()

Need to call out.close() after IOUtils.copy(in, out); when writing supporting files.
This commit is contained in:
Matthieu Chase Heimer 2016-12-19 13:25:10 -06:00 committed by GitHub
parent 8ccf9828e4
commit da1e07af21

View File

@ -526,6 +526,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
if (in != null) { if (in != null) {
LOGGER.info("writing file " + outputFile); LOGGER.info("writing file " + outputFile);
IOUtils.copy(in, out); IOUtils.copy(in, out);
out.close();
} else { } else {
LOGGER.error("can't open " + templateFile + " for input"); LOGGER.error("can't open " + templateFile + " for input");
} }