mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
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:
parent
8ccf9828e4
commit
da1e07af21
@ -526,6 +526,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
||||
if (in != null) {
|
||||
LOGGER.info("writing file " + outputFile);
|
||||
IOUtils.copy(in, out);
|
||||
out.close();
|
||||
} else {
|
||||
LOGGER.error("can't open " + templateFile + " for input");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user